Repository navigation
[scroll area] Perf improvements - #3536
Merged
Merged
Conversation
commit: |
Bundle size report
Check out the code infra dashboard for more information about this PR. |
✅ Deploy Preview for base-ui ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
atomiks
force-pushed
the
fix/scroll-area-perf
branch
4 times, most recently
from
December 13, 2025 20:51
a71dc2d to
33ec737
Compare
atomiks
marked this pull request as ready for review
December 14, 2025 10:20
atomiks
force-pushed
the
fix/scroll-area-perf
branch
from
December 14, 2025 20:32
33ec737 to
80df11f
Compare
atomiks
force-pushed
the
fix/scroll-area-perf
branch
from
December 16, 2025 10:24
80df11f to
8a0fe5b
Compare
LukasTy
approved these changes
Dec 19, 2025
LukasTy
left a comment
Member
There was a problem hiding this comment.
Looks and works nicely. 👍
Couldn't find issues, and Olivier's observed issue looks resolved. 👌
atomiks
force-pushed
the
fix/scroll-area-perf
branch
2 times, most recently
from
December 21, 2025 23:23
19caede to
c4d3cb7
Compare
atomiks
force-pushed
the
fix/scroll-area-perf
branch
from
December 21, 2025 23:28
c4d3cb7 to
80df55a
Compare
1 task done
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Help with #3534 @oliviertassinari
The key issue causing the "flicker" from what I found is that the
<Corner>element's size wasn't being taken into account during the first calculation of the thumb position. Once the corner has its size rendered, then the thumb calculation was correct. Since multiple calculations were happening on mount, this caused a visible flicker that was masked with a sync state update.computeThumbPositionbeing called unnecessarily on mount (even though state updates were typically discarded) by blocking initial updates in observer callbacks and removing redundant effectsAlso cleaned up the code a bit to remove duplication and grouped some hook calls more precisely
Preview: https://deploy-preview-3536--base-ui.netlify.app/react/components/select