From 05dd9c0f8b60f749bba8263abc4c138a065002bd Mon Sep 17 00:00:00 2001 From: ajreckof <66184050+ajreckof@users.noreply.github.com> Date: Sun, 4 Jun 2023 23:19:29 +0200 Subject: [PATCH] Make panning the 3D view with trackpad goes the right way --- editor/plugins/node_3d_editor_plugin.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/editor/plugins/node_3d_editor_plugin.cpp b/editor/plugins/node_3d_editor_plugin.cpp index 34667b006d7..ff9e723db9a 100644 --- a/editor/plugins/node_3d_editor_plugin.cpp +++ b/editor/plugins/node_3d_editor_plugin.cpp @@ -2096,7 +2096,7 @@ void Node3DEditorViewport::_sinput(const Ref &p_event) { switch (nav_mode) { case NAVIGATION_PAN: { - _nav_pan(pan_gesture, pan_gesture->get_delta()); + _nav_pan(pan_gesture, -pan_gesture->get_delta()); } break; @@ -2106,7 +2106,7 @@ void Node3DEditorViewport::_sinput(const Ref &p_event) { } break; case NAVIGATION_ORBIT: { - _nav_orbit(pan_gesture, pan_gesture->get_delta()); + _nav_orbit(pan_gesture, -pan_gesture->get_delta()); } break;