mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 06:44:57 +01:00
change use of MoveThreshold.first to reflect pixel units
This commit is contained in:
parent
c260640502
commit
8d7969e72b
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ Drag::motion_handler (GdkEvent* event, bool from_autoscroll)
|
|||
bool const old_move_threshold_passed = _move_threshold_passed;
|
||||
|
||||
if (!_move_threshold_passed) {
|
||||
bool const xp = (_raw_grab_time.distance (_drags->current_pointer_time ()).abs () >= threshold.first);
|
||||
bool const xp = (::fabs (current_pointer_x() - _grab_x) >= threshold.first);
|
||||
bool const yp = (::fabs ((current_pointer_y () - _grab_y)) >= threshold.second);
|
||||
|
||||
_move_threshold_passed = ((xp && x_movement_matters ()) || (yp && y_movement_matters ()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue