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

Frame drops in slider with minStepsBetweenThumbs #494

Open
lfpraca opened this issue Oct 2, 2024 · 0 comments
Open

Frame drops in slider with minStepsBetweenThumbs #494

lfpraca opened this issue Oct 2, 2024 · 0 comments

Comments

@lfpraca
Copy link

lfpraca commented Oct 2, 2024

Describe the bug

When minStepsBetweenThumbs is set on the Slider component, freezes happen when moving the left slider at or near (right - min)/2 when sliding towards the right and at or near (right + min)/2 when sliding towards the left.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'https://kobalte.dev/docs/core/components/slider/'
  2. Scroll to 'Steps between thumbs'
  3. Slide the right thumb to 80
  4. Slide the left thumb towards the right
  5. Notice frame drops as the left thumb passes 35
  6. Slide the left thumb towards the left
  7. Notice frame drops as the left thumb passes 45

Expected behavior
Expected the left thumb to slide smoothly throughout

Screenshots
If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: Windows
  • Browser: Firefox v130, Chromium v127

Smartphone (please complete the following information):

  • OS: Android
  • Browser: Firefox
  • Version: 130
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

No branches or pull requests

1 participant