gluestack-ui icon indicating copy to clipboard operation
gluestack-ui copied to clipboard

vertical Slider component can't update value correctly

Open Vergil0327 opened this issue 7 months ago • 0 comments

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

  1. Go to gluestack Slider Page
  2. see illustration and change orientation to vertical
  3. touch any position on SliderTrack
  4. you'll see SliderThumb jump to strange position
  5. 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

Vergil0327 avatar Apr 17 '25 01:04 Vergil0327