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

Update thumbTouchSize adjustment for trackClickable={false} #458

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

elliottkember
Copy link
Contributor

Fixes an issue where if trackClickable is set to false, the adjustments for _previousLeft are not applied correctly and the scrubber jumps slightly if the thumbTouchSize is set.

I fixed this issue originally, but I only just set trackClickable={false} today. I noticed that the scrubber was jumping again. I don't know why these two properties would interact like this but I sense it has something to do with the dragging event triggering on the track rather than on the scrubber.

Either way, this fixes the issue very nicely.

Snack: https://snack.expo.dev/@elliottkember/@miblanchard-react-native-slider

Fixes an issue where if trackClickable is set to false, the adjustments for _previousLeft are not applied correctly and the scrubber jumps slightly if the thumbTouchSize is set.
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

Successfully merging this pull request may close these issues.

1 participant