fix nav gesture
This commit is contained in:
committed by
Eric Bailey
parent
530db147e8
commit
a4a5b57adf
@@ -262,15 +262,16 @@ function VibeOverlay({player}: {player: VideoPlayer}) {
|
||||
|
||||
const gesture = useMemo(() => {
|
||||
const dragLeftGesture = Gesture.Pan()
|
||||
.activeOffsetX([0, 10])
|
||||
.failOffsetX([-10, 0])
|
||||
.failOffsetY([-10, 10])
|
||||
.maxPointers(1)
|
||||
.onEnd(evt => {
|
||||
'worklet'
|
||||
if (evt.translationX < -100) {
|
||||
if (evt.translationX < -50) {
|
||||
runOnJS(pushToProfile)()
|
||||
}
|
||||
})
|
||||
.activeOffsetX([-10, 10])
|
||||
.failOffsetY([-10, 10])
|
||||
.maxPointers(1)
|
||||
|
||||
return dragLeftGesture
|
||||
}, [pushToProfile])
|
||||
|
||||
Reference in New Issue
Block a user