Check movement threshold using the raw grab frame rather than the snapped one, which...
authorCarl Hetherington <carl@carlh.net>
Mon, 14 Mar 2011 19:25:18 +0000 (19:25 +0000)
committerCarl Hetherington <carl@carlh.net>
Mon, 14 Mar 2011 19:25:18 +0000 (19:25 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@9144 d708f5d6-7413-0410-9779-e7cbd77b26cf

gtk2_ardour/editor_drag.cc

index f8e810232d1f0a0f53ffa451f78aa4ce4bad3ff2..12126588da7a1842e8256a96e270f508467c8dfd 100644 (file)
@@ -316,7 +316,7 @@ Drag::motion_handler (GdkEvent* event, bool from_autoscroll)
 
        if (!from_autoscroll && !_move_threshold_passed) {
 
-               bool const xp = (::llabs (_drags->current_pointer_frame () - _grab_frame) >= threshold.first);
+               bool const xp = (::llabs (_drags->current_pointer_frame () - _raw_grab_frame) >= threshold.first);
                bool const yp = (::fabs ((_drags->current_pointer_y () - _grab_y)) >= threshold.second);
 
                _move_threshold_passed = ((xp && x_movement_matters()) || (yp && y_movement_matters()));