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>
@@ -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
}