forge
Explore
Log in

Don't you dare go Hollow

The scrub bar steps over the notices instead of on them

Browse files at this commit

3136aa697c169ba5055eae39b7f8420564de95acAhmet Kaan GümüşParent: 3b02ca6
  • fix
    • the scrub bar steps over the notices instead of on them
Show full message
🐛 fix(app): the scrub bar steps over the notices instead of on them

Its 24px hit area sat on the one-line notice plate, so a click meant to
dismiss the notice seeked the preview instead, and the fill bisected
the text. The bar now rests on top of whatever height the transient
bars measured this frame.
crates/app/src/ui/preview.rsmodified+5 -1
@@ -56,7 +56,11 @@ impl Player {
56 .absolute()56 .absolute()
57 .left_0()57 .left_0()
58 .right_0()58 .right_0()
59- .bottom_0()59+ // Above the transient bars, not over them: the bar's 24px hit
60+ // area drawn on a one-line notice ate the notice's own "click
61+ // to dismiss". The probe below the bars says how tall they
62+ // came out this frame; zero with none up.
63+ .bottom(self.notice_h.get())
60 .h(px(RULER_HIT_H))64 .h(px(RULER_HIT_H))
61 .flex()65 .flex()
62 .flex_col()66 .flex_col()