Check movement threshold using the raw grab frame rather than the snapped one, which I think is right.
git-svn-id: svn://localhost/ardour2/branches/3.0@9144 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
5dd3e39f9e
commit
82cb7c3280
@ -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()));
|
||||
|
Loading…
Reference in New Issue
Block a user