CommunityToolkit / CommunityToolkit/Maui
[BUG] DrawingView drawing continues even after mouse release
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [X] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [X] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
When user clicks inside the DrawingView control and starts drawing, later user releases the mous outside the DrawingView control. Afterwards user comes back the DrawingView control **without** pressing the mouse left button, the drawing will continue.
### Expected Behavior
When user releases mouse outside the DrawingView should be considered as end of drawing. Thereafter, when user comes inside the control should not continue the drawing.
### Steps To Reproduce
1. Click the mouse left button inside the DrawingView control
2. Do some drawing holding the mouse left button pressed
3. Without releasing the mouse button, move outside the DrawingView control
4. Release the mouse left button outside the DrawingView control
5. Move the mouse **without** pressing left button inside DrawingView
6. You will notice drawing is still continues, this is not the expected behavior.
### Link to public reproduction project repository
Not yet
### Environment
```markdown
- .NET MAUI CommunityToolkit:6.0.0
- OS:Windows 10 Enterprise
- .NET MAUI:net 7.0
```
### Anything else?
Mouse should be captured during the start of drawing, later MouseCapture release event should be listened and stop the drawing.
Contributor guide
Assessment
This issue has not been assessed yet.