From 23b6f06e3e0bd85cc52d928f418db4d6692b39a7 Mon Sep 17 00:00:00 2001 From: Elias Naur Date: Wed, 15 Nov 2023 07:36:27 -0600 Subject: [PATCH] io/pointer: clarify the documentation for Event.Position Signed-off-by: Elias Naur --- io/pointer/pointer.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/io/pointer/pointer.go b/io/pointer/pointer.go index ae734eed..962960df 100644 --- a/io/pointer/pointer.go +++ b/io/pointer/pointer.go @@ -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 effective transformation of the tag. Position f32.Point // Scroll is the scroll amount, if any. Scroll f32.Point