From 7e4c02b3f6921e2e985fb1934a5a6f4a01b716bc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?H=C3=A9ctor=20Ram=C3=B3n=20Jim=C3=A9nez?= Date: Sat, 3 May 2025 04:24:07 +0200 Subject: [PATCH] Set `is_scrollbar_visible` to `true` by default MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This should optimize the worst layout case—when scrollables with a lot of content are first shown. --- widget/src/scrollable.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs index 51286ae7..69422490 100644 --- a/widget/src/scrollable.rs +++ b/widget/src/scrollable.rs @@ -1417,7 +1417,7 @@ impl Default for State { keyboard_modifiers: keyboard::Modifiers::default(), last_notified: None, last_scrolled: None, - is_scrollbar_visible: false, + is_scrollbar_visible: true, } } }