Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slider large max bug #3013

Open
wants to merge 6 commits into
base: next
Choose a base branch
from
Open

Slider large max bug #3013

wants to merge 6 commits into from

Conversation

kwongz
Copy link
Contributor

@kwongz kwongz commented Jan 15, 2025

Description

Slider having issues handling min - max difference larger then 1000 points (ticks/steps).

dragging slider acorss large min-max values introduces lag

Screen.Recording.2025-01-14.161204.mp4

This PR aims handle the issue for users by ensuring the slider has a maximum 1000 steps. It also logs to the user the minimum step count the user should use for their slider.

Screen.Recording.2025-01-15.110104.mp4

By introducing minimum steps, the slider value now snaps to the exact maximum when it comes within a 99% threshold, ensuring users can always reach the maximum, even if the step sizes don't align perfectly.

Checklist

  • For UI or styling changes, I have added a screenshot or gif showing before & after
  • I have added a changeset
  • I have added to the docs where applicable
  • I have added to the VS Code extension where applicable

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