Add vertical zoom via scroll wheel modifier key to editor summary.
If the ScrollZoomVerticalModifier key is used with the scroll wheel over the editor summary pane, zoom the editor vertically.
This commit is contained in:
parent
741f9de3f7
commit
daf4dd874a
@ -629,6 +629,11 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
|
|||||||
x -= 64;
|
x -= 64;
|
||||||
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
|
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
|
||||||
_editor->temporal_zoom_step (false);
|
_editor->temporal_zoom_step (false);
|
||||||
|
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomVerticalModifier)) {
|
||||||
|
yr.first += 4;
|
||||||
|
yr.second -= 4;
|
||||||
|
set_editor (xr, yr);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
y -= 8;
|
y -= 8;
|
||||||
}
|
}
|
||||||
@ -638,6 +643,11 @@ EditorSummary::on_scroll_event (GdkEventScroll* ev)
|
|||||||
x += 64;
|
x += 64;
|
||||||
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
|
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomHorizontalModifier)) {
|
||||||
_editor->temporal_zoom_step (true);
|
_editor->temporal_zoom_step (true);
|
||||||
|
} else if (Keyboard::modifier_state_equals (ev->state, Keyboard::ScrollZoomVerticalModifier)) {
|
||||||
|
yr.first -= 4;
|
||||||
|
yr.second += 4;
|
||||||
|
set_editor (xr, yr);
|
||||||
|
return true;
|
||||||
} else {
|
} else {
|
||||||
y += 8;
|
y += 8;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user