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

Set Value of Continuous Slider from Code or React State Variable leaves UI out of sync. #90

Open
mixtah opened this issue Nov 14, 2023 · 0 comments

Comments

@mixtah
Copy link

mixtah commented Nov 14, 2023

Same idea as closed issue #57 however rather than a question, more of a bug report. The solution provided doesn't work correctly with a continuous slider.

I find as the value is set using dataIndex, the knob will bounce between the current position and the correct position. The actual value will update, however the slider will then be out of sync with where the zero position should be. For example setting the slider from 10 -> 20, would make the current knob position stay the same with the value updated to 20. Further smaller updates appear to move it. If then moving it to the configured '0' position, the value would then display -10.

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