gesture: add comment to Scroll.Add

Provide a reference to the documentation of io/pointer.InputOp.

Signed-off-by: Pierre Curto <pierre.curto@gmail.com>
This commit is contained in:
Pierre Curto
2021-12-14 08:36:21 +01:00
committed by Elias Naur
parent 294ecfbe9d
commit c8ca36b1e6
+2
View File
@@ -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,