Skip to content

fix(core): longer scroll bar - #1237

Open
kouhe3 wants to merge 1 commit into
anomalyco:mainfrom
kouhe3:fix/scroll-bar
Open

fix(core): longer scroll bar#1237
kouhe3 wants to merge 1 commit into
anomalyco:mainfrom
kouhe3:fix/scroll-bar

Conversation

@kouhe3

@kouhe3 kouhe3 commented Jul 9, 2026

Copy link
Copy Markdown

Hi I noticed that the scrollbar seems too short.

This PR added a new example to show scroll bar. and fixed length.

image

And this commit was made by AI.

by DeepSeek with Kilo Code CLI.

… render too short

The Slider.viewPortSize setter clamped the value to max-min, which is
correct for standalone sliders but breaks the ScrollBar use case where
max-min = scrollSize - viewportSize. When viewportSize > scrollSize/2,
the clamping truncated _viewPortSize, causing getVirtualThumbSize() to
produce a thumb smaller than the expected viewportSize/scrollSize ratio.

Add a debug demo in examples to visualize the diagnostic values.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant