You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Environment: Web implementation of react-native-slider.
Problem Summary: There is an issue with the thumb positioning in the web implementation. This problem is noticeable when using sliders without the step property (such as the examples towards the end of the example-web folder, f.ex.: the one titled "trackImage").
Steps to Reproduce:
Run the example-web provided in the react-native-slider repository.
Navigate to one of the slider examples without a step value (e.g., the one titled "trackImage").
Position the slider thumb at one of the extremes (either the very left or right end).
Click on the center of the thumb.
Expected Behavior: When clicking on the center of the thumb, especially at the extremes, the thumb position should accurately represent the slider value and remain stationary if the click doesn't intend to change the value.
Actual Behavior: Upon clicking on the center of the thumb when it's positioned at one of the extremes, the thumb slightly moves towards the center and a new value is returned. It's subtle but noticeable. This issue appears to stem from the way the thumb's container is sized, which includes the thumb circle itself, leading to an offset in value representation.
Additional Information: This issue affects the usability of the slider. The problem seems to be with the calculation of the thumb's position in relation to the slider's container size, which does not account for the size of the thumb circle itself.
Note: I will be submitting a PR shortly for review and further discussion.
The text was updated successfully, but these errors were encountered:
Environment: Web implementation of
react-native-slider
.Problem Summary: There is an issue with the thumb positioning in the web implementation. This problem is noticeable when using sliders without the
step
property (such as the examples towards the end of theexample-web
folder, f.ex.: the one titled "trackImage").Steps to Reproduce:
example-web
provided in thereact-native-slider
repository.step
value (e.g., the one titled "trackImage").Expected Behavior: When clicking on the center of the thumb, especially at the extremes, the thumb position should accurately represent the slider value and remain stationary if the click doesn't intend to change the value.
Actual Behavior: Upon clicking on the center of the thumb when it's positioned at one of the extremes, the thumb slightly moves towards the center and a new value is returned. It's subtle but noticeable. This issue appears to stem from the way the thumb's container is sized, which includes the thumb circle itself, leading to an offset in value representation.
Additional Information: This issue affects the usability of the slider. The problem seems to be with the calculation of the thumb's position in relation to the slider's container size, which does not account for the size of the thumb circle itself.
Note: I will be submitting a PR shortly for review and further discussion.
The text was updated successfully, but these errors were encountered: