From d3389bcf1d3cc6264b065c40e6548026b856862a Mon Sep 17 00:00:00 2001 From: Leon van Kammen Date: Wed, 23 Apr 2025 17:58:05 +0200 Subject: [PATCH] delay navigate fallbacks to play nice with other libraries/fr --- src/3rd/js/three/navigator.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/3rd/js/three/navigator.js b/src/3rd/js/three/navigator.js index bceb214..6d39d50 100644 --- a/src/3rd/js/three/navigator.js +++ b/src/3rd/js/three/navigator.js @@ -118,7 +118,8 @@ xrf.navigator.init = () => { 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) xrf.focusLine = new xrf.THREE.Group()