The scrub bar steps over the notices instead of on them
Browse files at this commit3136aa697c169ba5055eae39b7f8420564de95acParent: 3b02ca6- fix
- the scrub bar steps over the notices instead of on them
1 changed file +5 -1
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() |