BlueGit

ict rusty-teams

fix(ui): scrolling keeps working with the pointer over the hover toolbar

The toolbar slot used occlude(), which also swallowed wheel events; block_mouse_except_scroll() still blocks clicks to the message below.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

metis Daniel Däschle · pushed by metis

Authored 2026-10-12 · 7 weeks ago

Hash
6a4a7f0721e756ba39ef652870310baddad39141
Parent
07adf5c3
1 file changed +1 −1
crates/app/src/views/toolbar_placement.rs +1 −1
@@ -15,7 +15,7 @@ pub fn toolbar_slot(id: ElementId, hover: HoverChange, bar: impl IntoElement) ->
15 15 div()
16 16 .id(id)
17 17 .py(px(TOOLBAR_GAP))
18 .occlude()
18 .block_mouse_except_scroll()
19 19 .on_hover(move |hovered, _, cx| hover(*hovered, cx))
20 20 .child(bar)
21 21 }
@@ -15,7 +15,7 @@ pub fn toolbar_slot(id: ElementId, hover: HoverChange, bar: impl IntoElement) ->
15 div()
15 div()
16 .id(id)
16 .id(id)
17 .py(px(TOOLBAR_GAP))
17 .py(px(TOOLBAR_GAP))
18 .occlude()
18 .block_mouse_except_scroll()
19 .on_hover(move |hovered, _, cx| hover(*hovered, cx))
19 .on_hover(move |hovered, _, cx| hover(*hovered, cx))
20 .child(bar)
20 .child(bar)
21}
21}