Merge pull request #77852 from ajreckof/make-3Dview-pan-in-the-right-way-with-trackpads

Make panning the 3D view with trackpad goes the right way
This commit is contained in:
Rémi Verschelde 2023-06-05 18:04:58 +02:00
commit 89ef3e2c16
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

@ -2096,7 +2096,7 @@ void Node3DEditorViewport::_sinput(const Ref<InputEvent> &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<InputEvent> &p_event) {
} break;
case NAVIGATION_ORBIT: {
_nav_orbit(pan_gesture, pan_gesture->get_delta());
_nav_orbit(pan_gesture, -pan_gesture->get_delta());
} break;