scrolling the midi track/region works only if pointed-at-region is selected

This commit is contained in:
Paul Davis 2022-05-10 11:45:52 -06:00
parent 126a85aaca
commit 9c9273e694
1 changed files with 4 additions and 0 deletions

View File

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