mirror of
https://git.sr.ht/~eliasnaur/gio
synced 2026-07-05 01:15:35 +00:00
io/router: deliver scroll events only to the foremost scroll handler
Signed-off-by: Gordon Klaus <gordon.klaus@gmail.com>
This commit is contained in:
@@ -267,6 +267,11 @@ func (q *pointerQueue) deliverEvent(p *pointerInfo, events *handlerEvents, e poi
|
||||
e.Position = h.transform.Invert().Transform(e.Position)
|
||||
|
||||
addPointerEvent(events, k, e, h.types)
|
||||
|
||||
// Only deliver scroll events to the foremost handler.
|
||||
if e.Type == pointer.Scroll && e.Type&h.types != 0 {
|
||||
return
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user