Make panning the 3D view with trackpad goes the right way

This commit is contained in:
ajreckof 2023-06-04 23:19:29 +02:00
parent db5113de36
commit 05dd9c0f8b
1 changed files with 2 additions and 2 deletions

View File

@ -2096,7 +2096,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
switch (nav_mode) { switch (nav_mode) {
case NAVIGATION_PAN: { case NAVIGATION_PAN: {
_nav_pan(pan_gesture, pan_gesture->get_delta()); _nav_pan(pan_gesture, -pan_gesture->get_delta());
} break; } break;
@ -2106,7 +2106,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &p_event) {
} break; } break;
case NAVIGATION_ORBIT: { case NAVIGATION_ORBIT: {
_nav_orbit(pan_gesture, pan_gesture->get_delta()); _nav_orbit(pan_gesture, -pan_gesture->get_delta());
} break; } break;