fixing animation during dragging