From de026d4b1ebfb7353987964197908d47bb558f3b Mon Sep 17 00:00:00 2001 From: Violet Caulfield Date: Sun, 12 Jan 2025 10:01:06 -0600 Subject: [PATCH] add seek if user swipes off of the slider --- components/Player/component.tsx | 2 ++ 1 file changed, 2 insertions(+) diff --git a/components/Player/component.tsx b/components/Player/component.tsx index b6d06f1c..0c6c6cd5 100644 --- a/components/Player/component.tsx +++ b/components/Player/component.tsx @@ -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) => {