Fix bug painting a spot w/brush size=max when releasing the mouse after auto-scrolling

This commit is contained in:
David Capello 2022-05-30 18:45:57 -03:00
parent 251323a4d5
commit 1781ee0f15

View File

@ -342,8 +342,8 @@ bool DrawingState::onScrollChange(Editor* editor)
m_lastPointer = tools::Pointer(editor->screenToEditor(mousePos),
m_velocity.velocity(),
m_lastPointer.button(),
tools::Pointer::Type::Unknown,
0.0f);
m_lastPointer.type(),
m_lastPointer.pressure());
handleMouseMovement();
}
return true;