소스 검색

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
Rémi Verschelde 2 년 전
부모
커밋
89ef3e2c16
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  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) {
 		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;