Skip to content

refactor(ui): improve ExpressiveScrollBar indicator shape and anima…#1173

Merged
theovilardo merged 1 commit intomasterfrom
optim/scrollbar-look
Feb 21, 2026
Merged

refactor(ui): improve ExpressiveScrollBar indicator shape and anima…#1173
theovilardo merged 1 commit intomasterfrom
optim/scrollbar-look

Conversation

@theovilardo
Copy link
Copy Markdown
Owner

…tion

  • Shape:
    • Transition the scrollbar indicator from a drawRoundRect to a Path with addRoundRect.
    • This allows for independent control over the corner radii of the indicator.
    • Introduce indicatorRightCornerRadius to create a squarer shape on the right side while keeping the left side fully rounded, achieving a "squircle" effect when expanded.
  • Animation & Sizing:
    • Add indicatorExpandedWidthBoost to provide a subtle extra expansion during user interaction.
    • The indicator's width animation now accounts for this boost, creating a more dynamic feel.
  • Layout:
    • The overall component width is now based on the boosted expanded width to prevent clipping during the interaction animation.

…tion

- **Shape:**
    - Transition the scrollbar indicator from a `drawRoundRect` to a `Path` with `addRoundRect`.
    - This allows for independent control over the corner radii of the indicator.
    - Introduce `indicatorRightCornerRadius` to create a squarer shape on the right side while keeping the left side fully rounded, achieving a "squircle" effect when expanded.
- **Animation & Sizing:**
    - Add `indicatorExpandedWidthBoost` to provide a subtle extra expansion during user interaction.
    - The indicator's width animation now accounts for this boost, creating a more dynamic feel.
- **Layout:**
    - The overall component width is now based on the boosted expanded width to prevent clipping during the interaction animation.
@theovilardo theovilardo merged commit dd97874 into master Feb 21, 2026
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