Use same modifiers with the mouse wheel in the summary as in the editor (#4543).

git-svn-id: svn://localhost/ardour2/branches/3.0@10947 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Carl Hetherington
2011-12-09 15:44:59 +00:00
parent 99edcd7940
commit 2c07e83e4b

View File

@@ -586,9 +586,9 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
amount = 1;
}
if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
if (Keyboard::modifier_state_equals (ev->state, Keyboard::SecondaryModifier)) {
/* primary-wheel == left-right scrolling */
/* secondary-wheel == left-right scrolling */
if (ev->direction == GDK_SCROLL_UP) {
x += amount;
@@ -596,6 +596,16 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
x -= amount;
}
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::PrimaryModifier)) {
/* primary-wheel == zoom */
if (ev->direction == GDK_SCROLL_UP) {
_editor->temporal_zoom_step (false);
} else {
_editor->temporal_zoom_step (true);
}
} else {
if (ev->direction == GDK_SCROLL_DOWN) {