make a skip a greater than 3 seconds skip to the beginning of the track

This commit is contained in:
Violet Caulfield
2025-02-20 22:47:52 -06:00
parent b76316cce1
commit 7fb0fb186d

View File

@@ -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
/>