FIX: [STUDIO-3460] invert direction of PAN gesture

Change-Id: Iab67c6fa1d346cfc8390df8449cc3fd77277c6cc
This commit is contained in:
chunmao.guo 2023-06-27 15:31:49 +08:00 committed by Lane.Wei
parent a94e2e401f
commit e027054672

View file

@ -3769,7 +3769,7 @@ void GLCanvas3D::on_gesture(wxGestureEvent &evt)
float z = 0;
const Vec3d &p2 = _mouse_to_3d({p.x, p.y}, &z);
const Vec3d &p1 = _mouse_to_3d({p.x - d.x, p.y - d.y}, &z);
camera.set_target(camera.get_target() + p2 - p1);
camera.set_target(camera.get_target() + p1 - p2);
} else if (evt.GetEventType() == wxEVT_GESTURE_ZOOM) {
static float zoom_start = 1;
if (evt.IsGestureStart())