Skip to content

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

C

Fix pen not working on Schematic Viewer (#4844)

flurickc360f656d489
diff --git a/toonz/sources/toonzqt/schematicviewer.cpp b/toonz/sources/toonzqt/schematicviewer.cpp
index 39f9bb6d9..53cec0342 100644
--- a/toonz/sources/toonzqt/schematicviewer.cpp
+++ b/toonz/sources/toonzqt/schematicviewer.cpp
@@ -374,6 +374,7 @@ void SchematicSceneViewer::mousePressEvent(QMouseEvent *me) {
/*! Reimplemets the QGraphicsView::mouseMoveEvent()
*/
void SchematicSceneViewer::mouseMoveEvent(QMouseEvent *me) {
+ // qDebug() << "[mouseMoveEvent]";
if (m_gestureActive && m_touchDevice == QTouchDevice::TouchScreen &&
!m_stylusUsed) {
return;
@@ -633,7 +634,7 @@ void SchematicSceneViewer::tabletEvent(QTabletEvent *e) {
m_stylusUsed = false;
}
- e->accept();
+ QGraphicsView::tabletEvent(e);
}
//------------------------------------------------------------------