Skip to content

Commit

Permalink
io/pointer: clarify the documentation for Event.Position
Browse files Browse the repository at this point in the history
Signed-off-by: Elias Naur <[email protected]>
  • Loading branch information
eliasnaur committed Nov 15, 2023
1 parent e2915e5 commit 21bf070
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions io/pointer/pointer.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,10 @@ type Event struct {
Time time.Duration
// Buttons are the set of pressed mouse buttons for this event.
Buttons Buttons
// Position is the position of the event, relative to
// the current transformation, as set by op.TransformOp.
// Position is the coordinates of the event in the local coordinate
// system of the receiving tag. The transformation from global window
// coordinates to local coordinates is performed by the inverse of
// the [gioui.org/op.TransformOp]s applied to the [InputOp].
Position f32.Point
// Scroll is the scroll amount, if any.
Scroll f32.Point
Expand Down

0 comments on commit 21bf070

Please sign in to comment.