summaryrefslogtreecommitdiff
path: root/editor/animation_editor.cpp
diff options
context:
space:
mode:
authorBernhard Liebl <Bernhard.Liebl@gmx.org>2018-03-10 11:38:33 +0100
committerBernhard Liebl <Bernhard.Liebl@gmx.org>2018-03-10 11:38:33 +0100
commitefc9633b33d9d8eefdca136948da4f726eb70509 (patch)
tree4e7fd0ec549cdfb668bd24c547a3f087dce21d07 /editor/animation_editor.cpp
parent47addcf9d03da717e54158e455d1fc558b4bd66f (diff)
Fix wrong pan direction in animation player ui
Diffstat (limited to 'editor/animation_editor.cpp')
-rw-r--r--editor/animation_editor.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/editor/animation_editor.cpp b/editor/animation_editor.cpp
index 1b97a24968..5adee40c28 100644
--- a/editor/animation_editor.cpp
+++ b/editor/animation_editor.cpp
@@ -2930,8 +2930,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);
}
}