Merge pull request #17404 from poke1024/fix-anim-player-pan

Fix wrong pan direction in animation player ui
This commit is contained in:
Rémi Verschelde 2018-03-13 11:34:25 +01:00 committed by GitHub
commit 9cadef3ffb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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);
}
}