From fc9a7f16f122cb1e250e70bbcbbc638689aa9bf8 Mon Sep 17 00:00:00 2001 From: Johannes Mueller Date: Thu, 9 Jul 2020 23:55:24 +0200 Subject: [PATCH] Simplification: Allow ripple drag even if not on track. This is now possible as we no longer ripple across tacks --- gtk2_ardour/editor_drag.cc | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/gtk2_ardour/editor_drag.cc b/gtk2_ardour/editor_drag.cc index 6686af216a..d525611cad 100644 --- a/gtk2_ardour/editor_drag.cc +++ b/gtk2_ardour/editor_drag.cc @@ -2248,25 +2248,6 @@ RegionRippleDrag::RegionRippleDrag (Editor* e, ArdourCanvas::Item* i, RegionView void RegionRippleDrag::motion (GdkEvent* event, bool first_move) { - /* Which trackview is this ? */ - - pair const tvp = _editor->trackview_by_y_position (current_pointer_y ()); - RouteTimeAxisView* tv = dynamic_cast (tvp.first); - - /* The region motion is only processed if the pointer is over - an audio track. - */ - - if (!tv || !tv->is_track()) { - /* To make sure we hide the verbose canvas cursor when the mouse is - not held over an audiotrack. - */ - _editor->verbose_cursor()->hide (); - return; - } - - samplepos_t where = adjusted_current_sample (event); - assert (where >= 0); MusicSample after (0, 0); double delta = compute_x_delta (event, &after);