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