Skip to content

Commit

Permalink
Fix potential pen-drag actions when tapping
Browse files Browse the repository at this point in the history
  • Loading branch information
manongjohn committed Oct 11, 2023
1 parent 4b64051 commit 2c2af1e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions toonz/sources/toonz/sceneviewerevents.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -400,6 +400,12 @@ void SceneViewer::tabletEvent(QTabletEvent *e) {
m_tabletState = Released;
mouseEvent.m_button = Qt::LeftButton;
onRelease(mouseEvent);
} else if (m_tabletState == StartStroke) {
// Single tap of stylus still records TableMoves before TabletRelease.
// Skip the 1st TabletMove to give time for TabletRelease to show up
// This way we don't try to do a LeftButtonDrag operation (i.e. normal
// fill) too soon.
m_tabletState = OnStroke;
} else {
m_tabletMove = true;
onMove(mouseEvent); // m_tabletState is set to OnStrole here
Expand Down

0 comments on commit 2c2af1e

Please sign in to comment.