summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorBen Loftis <ben@harrisonconsoles.com>2018-08-10 10:43:38 -0500
committerBen Loftis <ben@harrisonconsoles.com>2018-08-10 10:43:57 -0500
commit9ba09caa9b9c0101e3d94a83d2cc57f637b5607c (patch)
treede555ce21f2127b15cc042d370cbbde534c7421b /gtk2_ardour
parent0d01a2abe936ca79c375c360b4420d9e130b223e (diff)
Likely fix for jittery snapped-cursor when dragging a region.
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/editor_mouse.cc18
1 files changed, 9 insertions, 9 deletions
diff --git a/gtk2_ardour/editor_mouse.cc b/gtk2_ardour/editor_mouse.cc
index 9bd882933b..5fc9524810 100644
--- a/gtk2_ardour/editor_mouse.cc
+++ b/gtk2_ardour/editor_mouse.cc
@@ -2106,17 +2106,17 @@ Editor::motion_handler (ArdourCanvas::Item* /*item*/, GdkEvent* event, bool from
update_join_object_range_location (event->motion.y);
- /* snapped_cursor stuff (the snapped_cursor shows where an operation is going to occur) */
- bool ignored;
- MusicSample where (0, 0);
- if (mouse_sample (where.sample, ignored)) {
- snap_to_with_modifier (where, event);
- set_snapped_cursor_position (where.sample);
- }
-
- /* drags might also change the snapped_cursor location, because we are snapping the thing being dragged, not the actual mouse cursor */
if (_drags->active ()) {
+ //drags change the snapped_cursor location, because we are snapping the thing being dragged, not the actual mouse cursor
return _drags->motion_handler (event, from_autoscroll);
+ } else {
+ //the snapped_cursor shows where an operation (like Split) is going to occur
+ bool ignored;
+ MusicSample where (0, 0);
+ if (mouse_sample (where.sample, ignored)) {
+ snap_to_with_modifier (where, event);
+ set_snapped_cursor_position (where.sample);
+ }
}
return false;