gluestack-ui
gluestack-ui copied to clipboard
vertical Slider component can't update value correctly
Description
clicking on any position along the SliderTrack does not correctly update the slider's value
CodeSandbox/Snack link
https://github.com/Vergil0327/gluestack-issue.git
Steps to reproduce
- Go to gluestack Slider Page
- see illustration and change orientation to vertical
- touch any position on SliderTrack
- you'll see SliderThumb jump to strange position
- or clone repo and try vertical/horizontal slider.
gluestack-ui Version
gluestack-ui v2 (@gluestack-ui/slider: 0.1.32)
Platform
- [x] Expo
- [ ] React Native CLI
- [ ] Next
- [ ] Web
- [ ] Android
- [ ] iOS
Other Platform
No response
Additional Information
When using the Slider component from gluestack-ui with orientation set to vertical, clicking on any position along the SliderTrack does not correctly update the slider's value. The value can only be updated by dragging the SliderThumb, not by clicking on the track itself.
But it behaves correctly in horizontal orientation