delay navigate fallbacks to play nice with other libraries/fr

This commit is contained in:
Leon van Kammen 2025-04-23 17:58:05 +02:00
parent 8c2b02dbaa
commit d3389bcf1d

View file

@ -118,7 +118,8 @@ xrf.navigator.init = () => {
xrf.emit('hash', {hash: document.location.hash }) xrf.emit('hash', {hash: document.location.hash })
}) })
xrf.navigator.setupNavigateFallbacks() // allow other libraries to trigger popstate event without triggering the navigate-fallbacks during pageload
setTimeout( xrf.navigator.setupNavigateFallbacks(), 1500 )
// this allows selectionlines to be updated according to the camera (renderloop) // this allows selectionlines to be updated according to the camera (renderloop)
xrf.focusLine = new xrf.THREE.Group() xrf.focusLine = new xrf.THREE.Group()