Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Request for new functionality
View staffing
Description
We have cool APIs like draggable and scrollable that combine gestures and state, but sometimes it is nice to just be able to access the raw position inside some area on screen.
Currently you need to write a DragGestureDetector with a DragObserver, but for a simple use case this is a lot to write.
My ideal code would look something like:
Where position state represents the coordinates inside the Box that is receiving an input event