We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e2915e5 commit 21bf070Copy full SHA for 21bf070
io/pointer/pointer.go
@@ -32,8 +32,10 @@ type Event struct {
32
Time time.Duration
33
// Buttons are the set of pressed mouse buttons for this event.
34
Buttons Buttons
35
- // Position is the position of the event, relative to
36
- // 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
37
+ // coordinates to local coordinates is performed by the inverse of
38
+ // the [gioui.org/op.TransformOp]s applied to the [InputOp].
39
Position f32.Point
40
// Scroll is the scroll amount, if any.
41
Scroll f32.Point
0 commit comments