From bc375e13d4f849e4dee012f748486f61dea41c18 Mon Sep 17 00:00:00 2001 From: manongjohn Date: Aug 01 2018 12:21:47 +0000 Subject: Fix incorrect gesture zoom point --- diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cpp index 1d5507f..b144994 100644 --- a/toonz/sources/toonzqt/schematicviewer.cpp +++ b/toonz/sources/toonzqt/schematicviewer.cpp @@ -548,7 +548,7 @@ void SchematicSceneViewer::gestureEvent(QGestureEvent *e) { if (QGesture *pinch = e->gesture(Qt::PinchGesture)) { QPinchGesture *gesture = static_cast(pinch); QPinchGesture::ChangeFlags changeFlags = gesture->changeFlags(); - QPoint firstCenter = gesture->centerPoint().toPoint(); + QPoint firstCenter = mapFromGlobal(gesture->centerPoint().toPoint()); if (gesture->state() == Qt::GestureStarted) { m_gestureActive = true;