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

Knob and track position when changing slider width dynamically #99

Open
lucasnngit opened this issue Apr 2, 2024 · 1 comment
Open

Comments

@lucasnngit
Copy link

Hello,

I have a useState sliderSize which is linked to the width prop, and when I change it, the slider is well resized but has a weird behavior. The knock and the track are incorrect, the knob has an offset of this position.

Maybe the formula to set the knock position and the track is still done through the initial value ?

Thank you for your help

image

@ChaimMist
Copy link

lol i just ran in to this problem

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

2 participants