mirror of
https://github.com/zhigang1992/react-native-bottom-sheet.git
synced 2026-04-28 20:25:36 +08:00
chore: updated useInteractivePanGestureHandler (#174)
This commit is contained in:
@@ -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]
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user