File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ async function init() {
223223 stats . dom . style . left = 'calc(env(safe-area-inset-left,0px) + 10px)' ;
224224 stats . dom . style . zIndex = '9999' ;
225225 stats . dom . style . transformOrigin = 'top left' ;
226- stats . dom . style . transform = window . innerWidth < 768 ? 'scale(1.6)' : 'scale(1)' ;
226+ stats . dom . style . transform = isMobile ( ) ? 'scale(1.6)' : 'scale(1)' ;
227227 document . body . appendChild ( stats . dom ) ;
228228
229229 function Update ( ) {
@@ -255,7 +255,7 @@ async function init() {
255255 Update ( ) ;
256256
257257 window . addEventListener ( "resize" , ( ) => {
258- stats . dom . style . transform = window . innerWidth < 768 ? 'scale(1.6)' : 'scale(1)' ;
258+ stats . dom . style . transform = isMobile ( ) ? 'scale(1.6)' : 'scale(1)' ;
259259 camera . aspect = window . innerWidth / window . innerHeight ;
260260 camera . updateProjectionMatrix ( ) ;
261261 renderer . setSize ( window . innerWidth , window . innerHeight ) ;
You can’t perform that action at this time.
0 commit comments