From efc9633b33d9d8eefdca136948da4f726eb70509 Mon Sep 17 00:00:00 2001 From: Bernhard Liebl Date: Sat, 10 Mar 2018 11:38:33 +0100 Subject: [PATCH] Fix wrong pan direction in animation player ui --- editor/animation_editor.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp index 1b97a249688..5adee40c288 100644 --- a/editor/animation_editor.cpp +++ b/editor/animation_editor.cpp @@ -2930,8 +2930,8 @@ void AnimationKeyEditor::_track_editor_gui_input(const Ref &p_input) Ref 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); } }