Add inertia to dragging, needs refactor