diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2025-08-15 23:41:17 +0200 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2025-08-20 15:57:38 +0200 |
| commit | c44d9d762cce9a2f3649141e553cb7bfd796f504 (patch) | |
| tree | ebb6f475bc3e0e2fe1b5d21a48873a276bef49ab | |
| parent | ea29271a1da388550f3089ff22d405502bdba7ea (diff) | |
| download | muhqs-game-c44d9d762cce9a2f3649141e553cb7bfd796f504.tar.gz muhqs-game-c44d9d762cce9a2f3649141e553cb7bfd796f504.zip | |
clear the hoverable reset func after the hover was reset
| -rw-r--r-- | go/ui/hoverable.go | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/go/ui/hoverable.go b/go/ui/hoverable.go index af50d890..3d547421 100644 --- a/go/ui/hoverable.go +++ b/go/ui/hoverable.go @@ -50,7 +50,10 @@ func (h *hoverWidget) onHover(x, y int) { } func (h *hoverWidget) stopHover(x, y int) { - if h.reset != nil { h.reset() } + if h.reset != nil { + h.reset() + h.reset = nil + } } type hoverCardView struct { |
