chore: updated useInteractivePanGestureHandler (#174)

This commit is contained in:
Mo Gorhom
2021-01-09 14:05:26 +01:00
committed by GitHub
parent 1257c462f6
commit 08955f53f0

View File

@@ -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]
);