mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-03 00:16:15 +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
@@ -46,7 +46,7 @@ func (e *Enum) Update(gtx layout.Context) bool {
|
||||
e.hovering = false
|
||||
changed := false
|
||||
for _, state := range e.keys {
|
||||
for _, ev := range state.click.Events(gtx) {
|
||||
for _, ev := range state.click.Update(gtx) {
|
||||
switch ev.Kind {
|
||||
case gesture.KindPress:
|
||||
if ev.Source == pointer.Mouse {
|
||||
|
||||
Reference in New Issue
Block a user