hide keyboard hint on mobile
This commit is contained in:
parent
cc0fe7d143
commit
4664069235
1 changed files with 2 additions and 1 deletions
|
|
@ -57,6 +57,7 @@
|
||||||
// add screenshot component with camera to capture proper equirects
|
// add screenshot component with camera to capture proper equirects
|
||||||
$('a-scene').setAttribute("screenshot",{camera: "[camera]",width: 4096*2, height:2048*2})
|
$('a-scene').setAttribute("screenshot",{camera: "[camera]",width: 4096*2, height:2048*2})
|
||||||
|
|
||||||
|
if( window.outerWidth > 800 )
|
||||||
setTimeout( () => window.notify("use WASD-keys and mouse-drag to move around",{timeout:false}),2000 )
|
setTimeout( () => window.notify("use WASD-keys and mouse-drag to move around",{timeout:false}),2000 )
|
||||||
|
|
||||||
window.AFRAME.XRF.addEventListener('href', (data) => data.selected ? window.notify(`href: ${data.xrf.string}`) : false )
|
window.AFRAME.XRF.addEventListener('href', (data) => data.selected ? window.notify(`href: ${data.xrf.string}`) : false )
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue