Skip to content

Commit

Permalink
edit contact: debounce click event
Browse files Browse the repository at this point in the history
  • Loading branch information
mixmasala committed Sep 18, 2024
1 parent f47815e commit 89d3f2e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions conversation.go
Original file line number Diff line number Diff line change
Expand Up @@ -119,8 +119,10 @@ func (c *conversationPage) Event(gtx layout.Context) interface{} {
}
}

if _, ok := c.edit.Update(gtx.Source); ok {
return EditContact{nickname: c.nickname}
if e, ok := c.edit.Update(gtx.Source); ok {
if e.Kind == gesture.KindClick {
return EditContact{nickname: c.nickname}
}
}
if c.back.Clicked(gtx) {
return BackEvent{}
Expand Down

0 comments on commit 89d3f2e

Please sign in to comment.