diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2020-05-25 11:36:56 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-25 11:36:56 +0200 |
commit | 6adc1830cb322ae296374527dd97bb61fadbef3d (patch) | |
tree | bc19bafa6f869db171abb6e6a5922ec33ad172af /editor | |
parent | 79209a856c0d701360161686a7074e39e4b306ec (diff) | |
parent | f4c6bb568e053d60ff304f3af983ad5e0525be29 (diff) |
Merge pull request #39023 from KoBeWi/reinventing_the_wheel
Reverse mouse wheel in animation track editor
Diffstat (limited to 'editor')
-rw-r--r-- | editor/animation_track_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_track_editor.cpp b/editor/animation_track_editor.cpp index 2a8e0d856e..75e7542abb 100644 --- a/editor/animation_track_editor.cpp +++ b/editor/animation_track_editor.cpp @@ -4882,12 +4882,12 @@ void AnimationTrackEditor::_box_selection_draw() { void AnimationTrackEditor::_scroll_input(const Ref<InputEvent> &p_event) { Ref<InputEventMouseButton> mb = p_event; - if (mb.is_valid() && mb->is_pressed() && mb->get_command() && mb->get_button_index() == BUTTON_WHEEL_DOWN) { + if (mb.is_valid() && mb->is_pressed() && mb->get_command() && mb->get_button_index() == BUTTON_WHEEL_UP) { timeline->get_zoom()->set_value(timeline->get_zoom()->get_value() * 1.05); scroll->accept_event(); } - if (mb.is_valid() && mb->is_pressed() && mb->get_command() && mb->get_button_index() == BUTTON_WHEEL_UP) { + if (mb.is_valid() && mb->is_pressed() && mb->get_command() && mb->get_button_index() == BUTTON_WHEEL_DOWN) { timeline->get_zoom()->set_value(timeline->get_zoom()->get_value() / 1.05); scroll->accept_event(); } |