mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-28 09:27:39 +01:00
[Summary] Improved fix for "first move with autoscroll" issue
This commit is contained in:
parent
200b8580b6
commit
25b96e9e59
1 changed files with 5 additions and 3 deletions
|
|
@ -385,11 +385,13 @@ Drag::motion_handler (GdkEvent* event, bool from_autoscroll)
|
|||
if (!_editor->autoscroll_active() || from_autoscroll) {
|
||||
|
||||
bool first_move = (_move_threshold_passed != old_move_threshold_passed) ||
|
||||
from_autoscroll;
|
||||
(from_autoscroll && !_starting_point_passed);
|
||||
|
||||
motion (event, first_move && !_starting_point_passed);
|
||||
motion (event, first_move);
|
||||
|
||||
_starting_point_passed = first_move;
|
||||
if (first_move) {
|
||||
_starting_point_passed = true;
|
||||
}
|
||||
|
||||
_last_pointer_x = _drags->current_pointer_x ();
|
||||
_last_pointer_y = current_pointer_y ();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue