FIX: [STUDIO-3460] invert direction of PAN gesture
Change-Id: Iab67c6fa1d346cfc8390df8449cc3fd77277c6cc
This commit is contained in:
parent
a94e2e401f
commit
e027054672
1 changed files with 1 additions and 1 deletions
|
@ -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())
|
||||
|
|
Loading…
Reference in a new issue