mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-07 19:40:19 -06:00
add seek if user swipes off of the slider
This commit is contained in:
@@ -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) => {
|
||||
|
||||
Reference in New Issue
Block a user