Browse Source

Fix full screen bug

Szeyin Lee 7 years ago
parent
commit
bd8598651d

+ 15 - 1
Viewer/assets/templates/default/navbar.html

@@ -298,7 +298,21 @@
         justify-content: space-between;
         justify-content: space-between;
     }
     }
 </style>
 </style>
-{{/if}} {{/if}}
+{{/if}} {{/if}} {{#if disableOnFullscreen}}
+<style>
+    viewer:fullscreen nav-bar {
+        display: none;
+    }
+
+    viewer:-moz-full-screen nav-bar {
+        display: none;
+    }
+
+    viewer:-webkit-full-screen nav-bar {
+        display: none;
+    }
+</style>
+{{/if}}
 
 
 <div class="nav-container" id="navbar-control">
 <div class="nav-container" id="navbar-control">
     {{#unless hideLogo}}
     {{#unless hideLogo}}

+ 1 - 0
Viewer/src/configuration/types/default.ts

@@ -37,6 +37,7 @@ export let defaultConfiguration: ViewerConfiguration = {
                 logoImg: require('../../../assets/img/BabylonJS_logo_Small.png'),
                 logoImg: require('../../../assets/img/BabylonJS_logo_Small.png'),
                 logoText: 'BabylonJS',
                 logoText: 'BabylonJS',
                 hideHelp: true,
                 hideHelp: true,
+                disableOnFullscreen: true,
             },
             },
             events: {
             events: {
                 pointerdown: {
                 pointerdown: {