minor fixes
This commit is contained in:
parent
b1f426d48b
commit
9360fdee93
6 changed files with 454 additions and 148 deletions
4
dist/xrfragment.aframe.js
vendored
4
dist/xrfragment.aframe.js
vendored
|
|
@ -1064,7 +1064,9 @@ xrf.frag.href = function(v, opts){
|
||||||
|
|
||||||
const distance = camera.position.distanceTo(newPos);
|
const distance = camera.position.distanceTo(newPos);
|
||||||
//if( distance > portalArea ){
|
//if( distance > portalArea ){
|
||||||
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
|
if( !renderer.xr.isPresenting ){
|
||||||
|
if( !confirm("teleport to "+v.string+" ?") ) return
|
||||||
|
}
|
||||||
|
|
||||||
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
||||||
console.log("teleport!")
|
console.log("teleport!")
|
||||||
|
|
|
||||||
4
dist/xrfragment.three.js
vendored
4
dist/xrfragment.three.js
vendored
|
|
@ -1064,7 +1064,9 @@ xrf.frag.href = function(v, opts){
|
||||||
|
|
||||||
const distance = camera.position.distanceTo(newPos);
|
const distance = camera.position.distanceTo(newPos);
|
||||||
//if( distance > portalArea ){
|
//if( distance > portalArea ){
|
||||||
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
|
if( !renderer.xr.isPresenting ){
|
||||||
|
if( !confirm("teleport to "+v.string+" ?") ) return
|
||||||
|
}
|
||||||
|
|
||||||
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
||||||
console.log("teleport!")
|
console.log("teleport!")
|
||||||
|
|
|
||||||
|
|
@ -91,7 +91,7 @@ input[type="submit"] {
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
border: 5px solid #1c1c3299;
|
border: 5px solid #1c1c3299;
|
||||||
padding: 0px 6px;
|
padding: 0px 6px;
|
||||||
bottom:73;
|
bottom:73px;
|
||||||
position: absolute;
|
position: absolute;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,7 @@ function SnackBar(userOptions) {
|
||||||
|
|
||||||
document.body.appendChild(_Container);
|
document.body.appendChild(_Container);
|
||||||
}
|
}
|
||||||
|
_Container.innerHTML = ''
|
||||||
_Element = document.createElement("div");
|
_Element = document.createElement("div");
|
||||||
_Element.classList.add("js-snackbar__wrapper");
|
_Element.classList.add("js-snackbar__wrapper");
|
||||||
|
|
||||||
|
|
@ -243,7 +244,7 @@ function SnackBar(userOptions) {
|
||||||
});
|
});
|
||||||
|
|
||||||
setTimeout(function() {
|
setTimeout(function() {
|
||||||
_Container.removeChild(_Element);
|
try { _Container.removeChild(_Element); } catch (e) { }
|
||||||
}, 1000);
|
}, 1000);
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
|
|
@ -107,7 +107,9 @@ xrf.frag.href = function(v, opts){
|
||||||
|
|
||||||
const distance = camera.position.distanceTo(newPos);
|
const distance = camera.position.distanceTo(newPos);
|
||||||
//if( distance > portalArea ){
|
//if( distance > portalArea ){
|
||||||
if( !renderer.xr.isPresenting && !confirm("teleport to "+v.string+" ?") ) return
|
if( !renderer.xr.isPresenting ){
|
||||||
|
if( !confirm("teleport to "+v.string+" ?") ) return
|
||||||
|
}
|
||||||
|
|
||||||
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
xrf.navigator.to(v.string) // ok let's surf to HREF!
|
||||||
console.log("teleport!")
|
console.log("teleport!")
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue