fixes velocity after dragging