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
I just set trackClickable to false on my vertical slider, and suddenly I can't scrub it downwards. Upwards works okay, but scrubbing downwards is broken.
I've tracked this down to the _getThumbLeft function, which uses vertical to discern between container width and height. However, my container seems to have a "width" of its visible height – not of its visible width. So the "width" is the draggable axis of the slider?
So the X and Y values are already flipped, but the function seems to be calculating incorrectly.
When the track is clickable, this resolves itself because clicking the track automatically jumps to the right position. But without that prop, the handle isn't scrubbable in a vertical context.
I just set
trackClickable
tofalse
on my vertical slider, and suddenly I can't scrub it downwards. Upwards works okay, but scrubbing downwards is broken.I've tracked this down to the
_getThumbLeft
function, which usesvertical
to discern between containerwidth
andheight
. However, my container seems to have a "width" of its visible height – not of its visible width. So the "width" is the draggable axis of the slider?So the X and Y values are already flipped, but the function seems to be calculating incorrectly.
When the track is clickable, this resolves itself because clicking the track automatically jumps to the right position. But without that prop, the handle isn't scrubbable in a vertical context.
Anyway, this seems to fix it:
Snack: https://snack.expo.dev/@elliottkember/cf066c
The text was updated successfully, but these errors were encountered: