react-spring-examples
react-spring-examples copied to clipboard
[slider] The "x" value is not preserved when gesture interrupts
It would be nice if x in the "Gesture Slider" demo was preserved when its animation is interrupted by another gesture.
Steps
-
Set the
frictionto ~500 -
Drag the slider left/right and release
-
Press down on the slider before
xhits 0 -
Notice how the
xanimation is not stopped whendownbecomes true -
Notice how
xjumps to 0 when you drag left/right