mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
[bugfix]: only restart time when now for web
This commit is contained in:
@@ -186,7 +186,7 @@ export const useHandlePlayQueueAdd = () => {
|
|||||||
? PlayersRef.current?.player1
|
? PlayersRef.current?.player1
|
||||||
: PlayersRef.current?.player2;
|
: PlayersRef.current?.player2;
|
||||||
const underlying = player?.getInternalPlayer();
|
const underlying = player?.getInternalPlayer();
|
||||||
if (underlying) {
|
if (underlying && playType === Play.NOW) {
|
||||||
underlying.currentTime = 0;
|
underlying.currentTime = 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user