in MidiViews, primary-scroll is always left unhandled so that horizontal zoom works everywhere
This commit is contained in:
@@ -410,9 +410,8 @@ MidiRegionView::scroll (GdkEventScroll* ev)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::PrimaryModifier) &&
|
||||
Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier+TertiaryModifier scroll
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier scroll
|
||||
* through so that it still works for navigation and zoom.
|
||||
*/
|
||||
return false;
|
||||
|
||||
@@ -645,9 +645,8 @@ MidiView::scroll (GdkEventScroll* ev)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::PrimaryModifier) &&
|
||||
Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier+TertiaryModifier scroll
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
|
||||
/* XXX: bit of a hack; allow PrimaryModifier scroll
|
||||
* through so that it still works for navigation and zoom.
|
||||
*/
|
||||
return false;
|
||||
|
||||
@@ -192,8 +192,7 @@ PianorollMidiView::scroll (GdkEventScroll* ev)
|
||||
return false;
|
||||
}
|
||||
|
||||
if (Keyboard::modifier_state_contains (ev->state, Keyboard::PrimaryModifier) &&
|
||||
Keyboard::modifier_state_contains (ev->state, Keyboard::TertiaryModifier)) {
|
||||
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
|
||||
|
||||
switch (ev->direction) {
|
||||
case GDK_SCROLL_UP:
|
||||
|
||||
Reference in New Issue
Block a user