Explorar el Código

Tweak the position of the immersive viewport

customisations
alemart hace 1 año
padre
commit
2ce01af236
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2
    2
      src/core/viewport.ts

+ 2
- 2
src/core/viewport.ts Ver fichero

@@ -879,8 +879,8 @@ export class ImmersiveViewport extends ResizableViewport
879 879
                 viewportHeight = (viewportWidth / viewportAspectRatio) | 0;
880 880
             }
881 881
 
882
-            container.style.left = `calc(50% - ${viewportWidth >>> 1}px)`;
883
-            container.style.top = `calc(50% - ${viewportHeight >>> 1}px)`;
882
+            container.style.left = `calc(50% - ${(viewportWidth+1) >>> 1}px)`;
883
+            container.style.top = `calc(50% - ${(viewportHeight+1) >>> 1}px)`;
884 884
             container.style.width = viewportWidth + 'px';
885 885
             container.style.height = viewportHeight + 'px';
886 886
         }

Loading…
Cancelar
Guardar