[Bug] fix big screen boot up bug (#6998)

fix big screen boot up bug
This commit is contained in:
Kurt Hutten
2025-05-16 18:55:09 +10:00
committed by GitHub
parent 1506de92f5
commit 28a8cd2421

View File

@ -264,8 +264,9 @@ export const EngineStream = (props: {
last.current = Date.now()
if (
Math.abs(video.width - window.innerWidth) > 4 ||
Math.abs(video.height - window.innerHeight) > 4
(Math.abs(video.width - window.innerWidth) > 4 ||
Math.abs(video.height - window.innerHeight) > 4) &&
!engineStreamState.matches(EngineStreamState.WaitingToPlay)
) {
timeoutStart.current = Date.now()
startOrReconfigureEngine()