<20220124133820.27134-1-rajiivkanchan@gmail.com>
pointer.Cancel event is ignored, resulting in Hovered returning true even though the pointer is no longer hovering over the region. This change fixes it. Signed-off-by: Rajiv Kanchan <rajiivkanchan@gmail.com> --- gesture/gesture.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gesture/gesture.go b/gesture/gesture.go index 2d63963c..33201f70 100644 --- a/gesture/gesture.go +++ b/gesture/gesture.go @@ -51,7 +51,7 @@ func (h *Hover) Hovered(q event.Queue) bool { continue } switch e.Type { - case pointer.Leave: + case pointer.Leave, pointer.Cancel: if h.entered && h.pid == e.PointerID { h.entered = false } -- 2.25.1
<CHDYHUB3V84T.1NKDUKN10AU0D@cirno2>
<20220124133820.27134-1-rajiivkanchan@gmail.com>
(view parent)
gio/patches: FAILED in 19m25s [gesture: fix Hover by handling pointer.Cancel event][0] from [Rajiv Kanchan][1] [0]: https://lists.sr.ht/~eliasnaur/gio-patches/patches/28669 [1]: rajiivkanchan@gmail.com ✓ #679904 SUCCESS gio/patches/openbsd.yml https://builds.sr.ht/~eliasnaur/job/679904 ✓ #679901 SUCCESS gio/patches/apple.yml https://builds.sr.ht/~eliasnaur/job/679901 ✓ #679903 SUCCESS gio/patches/linux.yml https://builds.sr.ht/~eliasnaur/job/679903 ✗ #679902 FAILED gio/patches/freebsd.yml https://builds.sr.ht/~eliasnaur/job/679902
<CHEMO7BBK58B.2KEZ329U4RU18@themachine>
<20220124133820.27134-1-rajiivkanchan@gmail.com>
(view parent)
Thanks, merged. Elias