Skip to content

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

C

prevent unnecessary call of leftButtonDrag (#1938)

shun-iwasawab266adeddf7e
diff --git a/toonz/sources/toonz/sceneviewerevents.cpp b/toonz/sources/toonz/sceneviewerevents.cpp
index 5238cbba0..692dd857e 100644
--- a/toonz/sources/toonz/sceneviewerevents.cpp
+++ b/toonz/sources/toonz/sceneviewerevents.cpp
@@ -313,7 +313,7 @@ void SceneViewer::tabletEvent(QTabletEvent *e) {
break;
}
#endif
- QPoint curPos = e->pos() * getDevPixRatio();
+ QPointF curPos = e->posF() * getDevPixRatio();
// It seems that the tabletEvent is called more often than mouseMoveEvent.
// So I fire the interval timer in order to limit the following process
// to be called in 50fps in maximum.