[Summary] Improved fix for "first move with autoscroll" issue

This commit is contained in:
GZharun 2015-02-05 16:42:50 +02:00
parent 200b8580b6
commit 25b96e9e59

View file

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