From eaeabdb0ef09a6ebd2389e3457cedc639ee81a5a Mon Sep 17 00:00:00 2001 From: Jason Lee Date: Fri, 15 Aug 2025 10:17:07 +0800 Subject: [PATCH] scrollbar: Remove max_fps method. (#1138) --- crates/ui/src/scroll/scrollbar.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/ui/src/scroll/scrollbar.rs b/crates/ui/src/scroll/scrollbar.rs index 07bc1138..b847d331 100644 --- a/crates/ui/src/scroll/scrollbar.rs +++ b/crates/ui/src/scroll/scrollbar.rs @@ -347,7 +347,7 @@ impl Scrollbar { /// If you have very high CPU usage, consider reducing this value to improve performance. /// /// Available values: 30..120 - pub fn max_fps(mut self, max_fps: usize) -> Self { + pub(crate) fn max_fps(mut self, max_fps: usize) -> Self { self.max_fps = max_fps.clamp(30, 120); self } @@ -508,7 +508,6 @@ impl Element for Scrollbar { }; // The horizontal scrollbar is set avoid overlapping with the vertical scrollbar, if the vertical scrollbar is visible. - let margin_end = if has_both && !is_vertical { THUMB_ACTIVE_WIDTH } else {