Skip to content

Don't suppress pointer events from a ToolTip's TooltipArea#11882

Open
ogoffart wants to merge 2 commits into
masterfrom
olivier/fix-#11863
Open

Don't suppress pointer events from a ToolTip's TooltipArea#11882
ogoffart wants to merge 2 commits into
masterfrom
olivier/fix-#11863

Conversation

@ogoffart
Copy link
Copy Markdown
Member

Add an InputEventFilterResult::ForwardAndObserve variant for items that need to track hover without claiming the event. TooltipArea returns it from its filter; the routing migrates the entry from the path stack to a MouseInputState.observers side list when it would otherwise be popped on EventIgnored. A trailing identity-diff in send_exit_events delivers Exit when the observer no longer appears in either list.

This way a TouchArea sibling of an element carrying a ToolTip still receives pointer-event(move) callbacks, while the tooltip still tracks hover and shows on dwell.

Fixes: #11863

ogoffart added 2 commits May 27, 2026 16:43
Add an InputEventFilterResult::ForwardAndObserve variant for items that
need to track hover without claiming the event. TooltipArea returns it
from its filter; the routing migrates the entry from the path stack to
a `MouseInputState.observers` side list when it would otherwise be
popped on EventIgnored. A trailing identity-diff in send_exit_events
delivers Exit when the observer no longer appears in either list.

This way a TouchArea sibling of an element carrying a ToolTip still
receives pointer-event(move) callbacks, while the tooltip still tracks
hover and shows on dwell.

Fixes: #11863
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

ToolTip on an element causes move pointer events to be supressed on parent or sibling items.

2 participants