From 3617e1e1870f158f411e1585c3ef447b323e1052 Mon Sep 17 00:00:00 2001 From: Mo Gorhom Date: Sat, 9 Jan 2021 14:01:20 +0100 Subject: [PATCH] chore: updated useInteractivePanGestureHandler --- src/hooks/useInteractivePanGestureHandler.ts | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/hooks/useInteractivePanGestureHandler.ts b/src/hooks/useInteractivePanGestureHandler.ts index ac56693e9..53d9a2b54 100644 --- a/src/hooks/useInteractivePanGestureHandler.ts +++ b/src/hooks/useInteractivePanGestureHandler.ts @@ -118,6 +118,15 @@ export const useInteractivePanGestureHandler = ( animateToPoint(destinationPoint, gestureVelocityY.value / 2); }, + onCancel: ({ state }) => { + gestureState.value = state; + }, + onFail: ({ state }) => { + gestureState.value = state; + }, + onFinish: ({ state }) => { + gestureState.value = state; + }, }, [snapPoints, enableOverDrag, overDragResistanceFactor] );