From c8ca36b1e6d5765ee3e293733b7b7024f61f696f Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Tue, 14 Dec 2021 08:36:21 +0100 Subject: [PATCH] gesture: add comment to Scroll.Add Provide a reference to the documentation of io/pointer.InputOp. Signed-off-by: Pierre Curto --- gesture/gesture.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gesture/gesture.go b/gesture/gesture.go index aa3585b5..2d63963c 100644 --- a/gesture/gesture.go +++ b/gesture/gesture.go @@ -244,6 +244,8 @@ func (c *Click) Events(q event.Queue) []ClickEvent { func (ClickEvent) ImplementsEvent() {} // Add the handler to the operation list to receive scroll events. +// The bounds variable refers to the scrolling boundaries +// as defined in io/pointer.InputOp. func (s *Scroll) Add(ops *op.Ops, bounds image.Rectangle) { oph := pointer.InputOp{ Tag: s,