mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 18:05:35 +00:00
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:
@@ -244,6 +244,8 @@ func (c *Click) Events(q event.Queue) []ClickEvent {
|
|||||||
func (ClickEvent) ImplementsEvent() {}
|
func (ClickEvent) ImplementsEvent() {}
|
||||||
|
|
||||||
// Add the handler to the operation list to receive scroll events.
|
// 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) {
|
func (s *Scroll) Add(ops *op.Ops, bounds image.Rectangle) {
|
||||||
oph := pointer.InputOp{
|
oph := pointer.InputOp{
|
||||||
Tag: s,
|
Tag: s,
|
||||||
|
|||||||
Reference in New Issue
Block a user