AnimationEditor: zoom using ctrl+wheel

closes #6585
This commit is contained in:
Andreas Haas 2016-09-23 14:57:54 +02:00
parent 6fcf2b2bd8
commit 3cce39c2d3
No known key found for this signature in database
GPG key ID: B5FFAE1B65FBD2E1

View file

@ -1933,13 +1933,21 @@ void AnimationKeyEditor::_track_editor_input_event(const InputEvent& p_input) {
if (mb.button_index==BUTTON_WHEEL_UP && mb.pressed) {
if (mb.mod.command) {
zoom->set_val(zoom->get_val() + zoom->get_step());
} else {
v_scroll->set_val( v_scroll->get_val() - v_scroll->get_page() / 8 );
}
}
if (mb.button_index==BUTTON_WHEEL_DOWN && mb.pressed) {
if (mb.mod.command) {
zoom->set_val(zoom->get_val() - zoom->get_step());
} else {
v_scroll->set_val( v_scroll->get_val() + v_scroll->get_page() / 8 );
}
}
if (mb.button_index==BUTTON_RIGHT && mb.pressed) {