File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change 150150 if ( isMobile ) {
151151 // Define a maximum pixel ratio for mobile to avoid rendering at too high resolutions
152152 const maxPixelRatioMobile = 2.0 ;
153- config . devicePixelRatio = Math . min ( window . devicePixelRatio , maxDevicePixelRatio ) ;
153+ config . devicePixelRatio = Math . min ( window . devicePixelRatio , maxPixelRatioMobile ) ;
154154 }
155155
156156 var canvas = document . querySelector ( "#unity-canvas" ) ;
Original file line number Diff line number Diff line change 149149 if ( isMobile ) {
150150 // Define a maximum pixel ratio for mobile to avoid rendering at too high resolutions
151151 const maxPixelRatioMobile = 2.0 ;
152- config . devicePixelRatio = Math . min ( window . devicePixelRatio , maxDevicePixelRatio ) ;
152+ config . devicePixelRatio = Math . min ( window . devicePixelRatio , maxPixelRatioMobile ) ;
153153 }
154154
155155 var canvas = document . querySelector ( "#unity-canvas" ) ;
You can’t perform that action at this time.
0 commit comments