From 9c9273e694c0782a0a0e79b9ceef0131ce2409ac Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 10 May 2022 11:45:52 -0600 Subject: [PATCH] scrolling the midi track/region works only if pointed-at-region is selected --- gtk2_ardour/midi_region_view.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc index c6d6128608..182f77937e 100644 --- a/gtk2_ardour/midi_region_view.cc +++ b/gtk2_ardour/midi_region_view.cc @@ -684,6 +684,10 @@ MidiRegionView::scroll (GdkEventScroll* ev) return false; } + if (!trackview.editor().get_selection().selected (this)) { + return false; + } + if (_selection.empty()) { const int step = Keyboard::modifier_state_equals (ev->state, Keyboard::TertiaryModifier) ? 12 : 1; const bool just_one_edge = Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier);