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:
Elias Naur
2023-10-07 10:30:34 -05:00
parent dc170033cd
commit c756986d9e
10 changed files with 24 additions and 25 deletions
+1 -1
View File
@@ -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 {