add seek if user swipes off of the slider

This commit is contained in:
Violet Caulfield
2025-01-12 10:01:06 -06:00
parent a2b7b91436
commit de026d4b1e

View File

@@ -96,7 +96,9 @@ export default function Player({ navigation }: { navigation: NativeStackNavigati
max={progress!.duration}
width={width / 1.1}
props={{
// If user swipes off of the slider we should seek to the spot
onPressOut: (event) => {
useSeekTo.mutate(progressState);
setSeeking(false);
},
onSlideStart: (event, value) => {