Prioritize the pan gesture over the tap gesture

This commit is contained in:
Lei Nelissen
2022-05-18 21:30:10 +02:00
parent fcb6b1465b
commit 7ef54eb06d

View File

@@ -115,7 +115,7 @@ function ProgressBar() {
isDragging.value = false; isDragging.value = false;
runOnJS(TrackPlayer.seekTo)(pos.value); runOnJS(TrackPlayer.seekTo)(pos.value);
}); });
const gesture = Gesture.Exclusive(tap, pan); const gesture = Gesture.Exclusive(pan, tap);
useEffect(() => { useEffect(() => {
pos.value = position; pos.value = position;