This patch fixes a small bug with how noodle handles brush strokes that
end outside of the canvas.
= Bug =
== Replicating ==
1. Start drawing in the canvas
2. Do not release the mouse until the cursor has left the canvas
3. Before reentering the canvas, attempt to click UI elements outside of
the canvas
== Expected behaviour ==
Everything works as normal : )
== Actual behaviour ==
Nothing outside of the canvas can be clicked, until the mouse moves back
inside the canvas : (
== Cause ==
`cursor/last` is used to stop accidental interactions with the rest of
the UI while the user is drawing.
This allows the user to leave and return to the canvas with their mouse
held down, without accidentally mashing buttons.
As `cursor/last` is only recorded while the mouse is in the canvas,
however, releasing the mouse outside of the canvas goes undetected.
== Fix ==
Detect mouse releases outside of the canvas, and change `cursor/last` as
usual, restoring UI functionality :^)
Hoolean (1):
Fixed issue where finishing stroke outside of canvas leaves buttons
unclickable
src/main.tal | 5 +++++
1 file changed, 5 insertions(+)
--
2.32.0
[PATCH noodle 1/1] Fixed issue where finishing stroke outside of canvas leaves buttons unclickable