Skip to content

Commit

Permalink
Fix pen not working on Schematic Viewer (opentoonz#4844)
Browse files Browse the repository at this point in the history
Co-authored-by: manongjohn <[email protected]>
  • Loading branch information
flurick and manongjohn authored Apr 25, 2023
1 parent 9263815 commit c360f65
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion toonz/sources/toonzqt/schematicviewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -633,7 +634,7 @@ void SchematicSceneViewer::tabletEvent(QTabletEvent *e) {
m_stylusUsed = false;
}

e->accept();
QGraphicsView::tabletEvent(e);
}

//------------------------------------------------------------------
Expand Down

0 comments on commit c360f65

Please sign in to comment.