Skip to content

OpenToonz - An open-source full-featured 2D animation creation software

C

Fix incorrect gesture zoom point

manongjohnbc375e13d4f8
diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cpp
index 1d5507f9d..b14499472 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<QPinchGesture *>(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;