Skip to content
Permalink
Browse files

Fix broken stroke when right clicking during a stroke

If, in the middle of drawing a stroke, you click the right mouse
button, the resulting stroke will stay on the screen because
the second pointerReleaseEvent never got called. This should
be fixed now
  • Loading branch information...
scribblemaniac committed Apr 15, 2019
1 parent 8cc1f8b commit c0af82a8243cf6107c663ca6026fdbeac2f706ad
Showing with 1 addition and 1 deletion.
  1. +1 −1 core_lib/src/interface/scribblearea.cpp
@@ -660,7 +660,7 @@ void ScribbleArea::mouseReleaseEvent(QMouseEvent* e)
mStrokeManager->pointerReleaseEvent(&event);

pointerReleaseEvent(&event);
mMouseInUse = false;
mMouseInUse = (e->buttons() & Qt::RightButton) || (e->buttons() & Qt::LeftButton);
}

void ScribbleArea::mouseDoubleClickEvent(QMouseEvent* e)

0 comments on commit c0af82a

Please sign in to comment.
You can’t perform that action at this time.