From d953f1ce0e65d59c529f40ddc8da0e80db0dfbfb Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Mon, 24 Nov 2014 21:58:56 +0200 Subject: when dragging on the canvas, use x,y pointer coordinates to decide if motion has occured. Using _last_pointer_frame breaks when dragging to the left of the canvas, because we clamp the value of the frame to >= 0. Motion would step once the pointer crossed the left edge of the canvas because the frame value would always be zero. This is not a problem when using the pointer x,y values which end up appropriately negative under all conditions. --- gtk2_ardour/editor_drag.h | 1 + 1 file changed, 1 insertion(+) (limited to 'gtk2_ardour/editor_drag.h') diff --git a/gtk2_ardour/editor_drag.h b/gtk2_ardour/editor_drag.h index 3c1eef70f6..9b4a0a6521 100644 --- a/gtk2_ardour/editor_drag.h +++ b/gtk2_ardour/editor_drag.h @@ -211,6 +211,7 @@ protected: return _last_pointer_frame; } + double current_pointer_x () const; double current_pointer_y () const; boost::shared_ptr add_midi_region (MidiTimeAxisView*); -- cgit v1.2.3