From a79d1a3dc2c22fc6e4fddedc822e8679c4565950 Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 16 Aug 2024 14:07:59 +0800 Subject: [PATCH] Fix scrollbar to default to invisible on first render. #146 (#158) --- crates/ui/src/scroll/scrollbar.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui/src/scroll/scrollbar.rs b/crates/ui/src/scroll/scrollbar.rs index f7905a96..a530c971 100644 --- a/crates/ui/src/scroll/scrollbar.rs +++ b/crates/ui/src/scroll/scrollbar.rs @@ -57,7 +57,7 @@ impl Default for ScrollbarState { hovered_axis: None, dragged_axis: None, drag_pos: point(px(0.), px(0.)), - visible: true, + visible: false, } } }