diff options
author | Rémi Verschelde <rverschelde@gmail.com> | 2018-03-13 11:34:25 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-03-13 11:34:25 +0100 |
commit | 9cadef3ffbd6a952e150235c370825b6ffa6a817 (patch) | |
tree | b3f606061e4b0eabf9f092415b7192595e605ab7 | |
parent | f92acfe1192843fcda52ff3a34c60e2208623808 (diff) | |
parent | efc9633b33d9d8eefdca136948da4f726eb70509 (diff) |
Merge pull request #17404 from poke1024/fix-anim-player-pan
Fix wrong pan direction in animation player ui
-rw-r--r-- | editor/animation_editor.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index b40ec2cff7..109081bc27 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -2940,8 +2940,8 @@ void AnimationKeyEditor::_track_editor_gui_input(const Ref<InputEvent> &p_input) Ref<InputEventPanGesture> pan_gesture = p_input; if (pan_gesture.is_valid()) { - h_scroll->set_value(h_scroll->get_value() - h_scroll->get_page() * pan_gesture->get_delta().x / 8); - v_scroll->set_value(v_scroll->get_value() - v_scroll->get_page() * pan_gesture->get_delta().y / 8); + h_scroll->set_value(h_scroll->get_value() + h_scroll->get_page() * pan_gesture->get_delta().x / 8); + v_scroll->set_value(v_scroll->get_value() + v_scroll->get_page() * pan_gesture->get_delta().y / 8); } } |