Skip to content

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

C

Touchpad zooming adjusment

manongjohn7a41e5351d97
diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cpp
index 129311833..b70b0c100 100644
--- a/toonz/sources/toonzqt/schematicviewer.cpp
+++ b/toonz/sources/toonzqt/schematicviewer.cpp
@@ -428,12 +428,12 @@ void SchematicSceneViewer::changeScale(const QPoint &winPos,
qreal scaleFactor) {
QPointF startScenePos = m_touchDevice == QTouchDevice::TouchScreen
? mapToScene(winPos)
- : mapToScene(winPos) * getDevPixRatio();
+ : mapToScene(winPos * getDevPixRatio());
QMatrix scale = QMatrix().scale(scaleFactor, scaleFactor);
setMatrix(scale, true);
QPointF endScenePos = m_touchDevice == QTouchDevice::TouchScreen
? mapToScene(winPos)
- : mapToScene(winPos) * getDevPixRatio();
+ : mapToScene(winPos * getDevPixRatio());
QPointF delta = endScenePos - startScenePos;
translate(delta.x(), delta.y());
}