dotnet / dotnet/maui

GraphicsView Interaction Event must continue when outside

Open
#12,282 6 comments 1 reaction 0 assignees View on GitHub
area-drawing proposal/open
Dominant language
C#
Stars
23.3k
Forks
2k
Avg merge
1d 15h
Merged PRs (30d)
290

Description

### Description

GraphicsView Component:
EndInteraction is called when leaving the GraphicsView. This prevents from using this feature to draw useful controls.
There is also an IsInsideBounds Indication which is quite nice but does not help.

Much better behaviour would be that there is no EndInteraction when leaving. So controlling the drawn control is still possible. And Using the IsInsideBounds Indication to cancel the event yourself when it is needed.

### Public API Changes

No Api changes required. Only behaviour should be changed.

### Intended Use-Case

I would like to create controls with GraphicsView and need Cursor position outside of control when Interaction started inside of control.

Contributor guide

Open the contributing guide

Research direction

Start by locating the GraphicsView interaction handling and reproduce an interaction that begins inside the control and continues after the pointer leaves its bounds. Verify how EndInteraction and IsInsideBounds are handled; done means the interaction continues outside the control without public API changes, while callers can still use IsInsideBounds to cancel it.

Written by the indexing model from the issue text.

Assessment

Tech stack
csharp
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.