mirror of
https://github.com/Jellify-Music/App.git
synced 2026-01-22 03:00:03 -06:00
make a skip a greater than 3 seconds skip to the beginning of the track
This commit is contained in:
@@ -328,7 +328,15 @@ export default function PlayerScreen({
|
||||
<Icon
|
||||
color={getTokens().color.amethyst.val}
|
||||
name="skip-previous"
|
||||
onPress={() => usePrevious.mutate()}
|
||||
onPress={() => {
|
||||
|
||||
if (progressState / ProgressMultiplier < 3)
|
||||
usePrevious.mutate()
|
||||
else {
|
||||
setProgressState(0);
|
||||
useSeekTo.mutate(0);
|
||||
}
|
||||
}}
|
||||
large
|
||||
/>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user