change use of MoveThreshold.first to reflect pixel units

This commit is contained in:
Paul Davis 2025-08-19 11:59:27 -06:00 committed by Edgar Aichinger
parent c260640502
commit 8d7969e72b

View file

@ -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 ()));