From 0c7e80d896b60598a33f03d26100077c91b06ea9 Mon Sep 17 00:00:00 2001 From: Valentin Haudiquet Date: Thu, 19 Nov 2026 19:33:32 +0100 Subject: [PATCH] app: take the details scroll bars down with the column The two bars are drawn over the window from the rects their viewports report, and a live rect outlives the viewport it came from. Closing the details column stopped reporting, so the last rects stayed and the bars kept floating over the clip, scrolling nothing. Draw the bars only while the column they belong to is up. --- app/src/app.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/app.rs b/app/src/app.rs index f06d707..3d5ff15 100644 --- a/app/src/app.rs +++ b/app/src/app.rs @@ -964,12 +964,15 @@ pub fn view(app: &App, cx: &mut Cx) -> El { .child(main) .child(statusbar(p, app)); let content = match app.screen { - Screen::Review => window + // The two bars belong to the details column and nothing else: leaving them up once the + // column closes floats them over the clip, where they scroll nothing. + Screen::Review if app.review.show_details && app.reviewed().is_some() => window .child( app.highlights_scroll .thumb(p, "highlights-thumb", "highlight-scroller"), ) .child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")), + Screen::Review => window, _ => window.child(app.scroll.thumb( p, "scroll-thumb",