From 25b96e9e59f418bcfbc518b43f0d3b99dba27e55 Mon Sep 17 00:00:00 2001 From: GZharun Date: Thu, 5 Feb 2015 16:42:50 +0200 Subject: [PATCH] [Summary] Improved fix for "first move with autoscroll" issue --- gtk2_ardour/editor_drag.cc | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 0068a812c4..fb791379ad 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -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 ();