Merge pull request #6592 from Hinsbart/anim_zoom
AnimationEditor: zoom using ctrl+wheel
This commit is contained in:
commit
14fa87ce92
1 changed files with 10 additions and 2 deletions
|
|
@ -1933,12 +1933,20 @@ void AnimationKeyEditor::_track_editor_input_event(const InputEvent& p_input) {
|
|||
|
||||
if (mb.button_index==BUTTON_WHEEL_UP && mb.pressed) {
|
||||
|
||||
v_scroll->set_val( v_scroll->get_val() - v_scroll->get_page() / 8 );
|
||||
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) {
|
||||
|
||||
v_scroll->set_val( v_scroll->get_val() + v_scroll->get_page() / 8 );
|
||||
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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue