ui/pointer: ignore hits to dropped handlers

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2019-07-12 12:24:31 +02:00
parent 3a6fda129a
commit fb9e5ca902
+4 -1
View File
@@ -129,7 +129,10 @@ func (q *pointerQueue) opHit(handlers *[]Key, pos f32.Point) {
idx = n.next
}
if n.key != nil {
*handlers = append(*handlers, n.key)
if _, exists := q.handlers[n.key]; exists {
*handlers = append(*handlers, n.key)
}
}
}
}