fix(web): random viewport-size def bug

This commit is contained in:
Joshua A. Horton 2023-10-31 14:11:11 +07:00
parent bb2250fdf0
commit 1715463fd6

View file

@ -8,8 +8,8 @@ export class ViewportZoneSource implements RecognitionZoneSource {
return DOMRect.fromRect({
y: 0,
x: 0,
height: Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0),
width: Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
width: Math.max(document.documentElement.clientWidth || 0, window.innerWidth || 0),
height: Math.max(document.documentElement.clientHeight || 0, window.innerHeight || 0)
});
}
}