Selaa lähdekoodia

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

ajreckof 2 vuotta sitten
vanhempi
commit
05dd9c0f8b
1 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 2 2
      editor/plugins/node_3d_editor_plugin.cpp

+ 2 - 2
editor/plugins/node_3d_editor_plugin.cpp

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