Skip to content

Commit 004a755

Browse files
VolodymyrBaydalkangokevin
authored andcommitted
hide annoying navigation buttons on android (#4090)
* hide annoying navigation buttons on android * refactored to fit code convention
1 parent 686490e commit 004a755

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/core/scene/a-scene.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -798,7 +798,8 @@ function requestFullscreen (canvas) {
798798
canvas.webkitRequestFullscreen ||
799799
canvas.mozRequestFullScreen || // The capitalized `S` is not a typo.
800800
canvas.msRequestFullscreen;
801-
requestFullscreen.apply(canvas);
801+
// Hide navigation buttons on Android.
802+
requestFullscreen.apply(canvas, [{navigationUI: 'hide'}]);
802803
}
803804

804805
function exitFullscreen () {

0 commit comments

Comments
 (0)