mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 08:25:34 +00:00
gesture: [API] rename gesture state update methods to Update
Change the gesture state update methods to align with the convention. Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+1
-1
@@ -141,7 +141,7 @@ func (b *Clickable) Update(gtx layout.Context) []Click {
|
||||
NumClicks: c,
|
||||
})
|
||||
}
|
||||
for _, e := range b.click.Events(gtx) {
|
||||
for _, e := range b.click.Update(gtx) {
|
||||
switch e.Kind {
|
||||
case gesture.KindClick:
|
||||
if l := len(b.history); l > 0 {
|
||||
|
||||
Reference in New Issue
Block a user