Skip to content

fix(slider): clamp range handles to current bounds - #3097

Open
Xapollon430 wants to merge 1 commit into
shoelace-style:nextfrom
Xapollon430:codex/fix-slider-range-bounds
Open

Xapollon430 wants to merge 1 commit into
shoelace-style:nextfrom
Xapollon430:codex/fix-slider-range-bounds

Conversation

@Xapollon430

Copy link
Copy Markdown
Contributor

When the global maximum drops below both range handles, the lower handle is clamped against the previous upper handle and stays above the new maximum. Releasing a drag then commits an inverted range such as [80, 60].

Cap the lower handle's upper constraint at the current maximum. Both handles now settle at60 in that case. Add pointer-release and programmatic-bound regression tests.

Fixes #3096.

Validation: a real Chromium pointer drag with3.15.0 reproduced public values and a change snapshot of [80, 60]. Applying the identical one-line fix to its matching published implementation produced [60, 60]. The source contains the same change. The full repository suite was not run.

@vercel

vercel Bot commented Nov 25, 2026

Copy link
Copy Markdown

@Xapollon430 is attempting to deploy a commit to the Font Awesome Team on Vercel.

A member of the Team first needs to authorize it.

This branch has not been deployed

No deployments
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.

Range slider retains lower value above maximum when bounds change during dragging

1 participant