app: keep the list scroll bar off the clip view
The clip screen fell through to the history and settings branch, so their thumb stayed where its own viewport left it: a grey bar on the clip's right that scrolled nothing. Each screen now names its own bar, and the clip draws none.
This commit is contained in:
1 parent
7463cf3905
commit
f85f9b49d3
1 file changed
+5
-9
+5
-9
@@ -1324,15 +1324,11 @@ pub fn view(app: &App, cx: &mut Cx<App>) -> El {
|
||||
.child(app.events_scroll.thumb(p, "events-thumb", "event-scroller")),
|
||||
Screen::Review => window,
|
||||
Screen::Clips => window.child(app.clips_scroll.thumb(p, "clips-thumb", "clips-scroller")),
|
||||
_ => window.child(app.scroll.thumb(
|
||||
p,
|
||||
"scroll-thumb",
|
||||
if app.screen == Screen::Settings {
|
||||
"scroller"
|
||||
} else {
|
||||
"list-scroller"
|
||||
},
|
||||
)),
|
||||
Screen::Settings => window.child(app.scroll.thumb(p, "scroll-thumb", "scroller")),
|
||||
Screen::History => window.child(app.scroll.thumb(p, "scroll-thumb", "list-scroller")),
|
||||
// A clip fills its screen with a player, not a list: the history or settings thumb would
|
||||
// stay where its own viewport left it, a bar on the clip's right that scrolls nothing.
|
||||
Screen::Clip => window,
|
||||
};
|
||||
if app.screen == Screen::Settings && app.form.add_open {
|
||||
screens::settings::add_dialog(app, p, &mut overlays);
|
||||
|
||||
Reference in new issue
Block a user