mirror of
https://github.com/Jellify-Music/App.git
synced 2026-04-20 16:50:33 -05:00
time code alignment
time code update adjustment
This commit is contained in:
@@ -37,7 +37,7 @@ export default function Player({ navigation }: { navigation: NativeStackNavigati
|
||||
|
||||
useEffect(() => {
|
||||
if (!seeking)
|
||||
setProgressState(progress!.position)
|
||||
setProgressState(Math.floor(progress!.position))
|
||||
}, [
|
||||
progress
|
||||
]);
|
||||
@@ -125,11 +125,11 @@ export default function Player({ navigation }: { navigation: NativeStackNavigati
|
||||
</XStack>
|
||||
|
||||
<XStack marginHorizontal={20} marginVertical={10}>
|
||||
<XStack alignItems="flex-start">
|
||||
<XStack flex={1} alignContent="flex-start">
|
||||
<RunTimeSeconds>{progressState}</RunTimeSeconds>
|
||||
</XStack>
|
||||
|
||||
<XStack alignItems="flex-end">
|
||||
<XStack flex={1} alignContent="flex-end">
|
||||
<RunTimeSeconds>{progress!.duration}</RunTimeSeconds>
|
||||
</XStack>
|
||||
</XStack>
|
||||
|
||||
Reference in New Issue
Block a user