mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-06 01:45:36 +00:00
ui/pointer: ignore hits to dropped handlers
Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
+4
-1
@@ -129,7 +129,10 @@ func (q *pointerQueue) opHit(handlers *[]Key, pos f32.Point) {
|
|||||||
idx = n.next
|
idx = n.next
|
||||||
}
|
}
|
||||||
if n.key != nil {
|
if n.key != nil {
|
||||||
*handlers = append(*handlers, n.key)
|
if _, exists := q.handlers[n.key]; exists {
|
||||||
|
*handlers = append(*handlers, n.key)
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user