Skip to content

Update thumbTouchSize adjustment for trackClickable={false} - #458

Open
elliottkember wants to merge 1 commit into
miblanchard:mainfrom
elliottkember:patch-1
Open

Update thumbTouchSize adjustment for trackClickable={false}#458
elliottkember wants to merge 1 commit into
miblanchard:mainfrom
elliottkember:patch-1

Conversation

@elliottkember

Copy link
Copy Markdown
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