We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1462fd0 commit 7abc041Copy full SHA for 7abc041
src/index.tsx
@@ -298,7 +298,7 @@ class SwipeableItem<T> extends React.PureComponent<Props<T>> {
298
onPanEvent = event([
299
{
300
nativeEvent: ({ translationX, velocityX }: PanGestureHandlerEventExtra) =>
301
- block([
+ cond(eq(this.gestureState, GestureState.ACTIVE), [
302
set(this.panX, translationX),
303
set(this.velocity, velocityX),
304
set(this.tempTranslate, add(translationX, this.prevTranslate)),
@@ -363,6 +363,7 @@ class SwipeableItem<T> extends React.PureComponent<Props<T>> {
363
this.animConfig.toValue as Animated.Value<number>,
364
this.currentSnapPoint
365
),
366
+ set(this.velocity, 0),
367
startClock(this.clock)
368
])
369
]),
0 commit comments