diff --git a/frontend/misc/settings.ts b/frontend/misc/settings.ts index a34540c..1829bdd 100644 --- a/frontend/misc/settings.ts +++ b/frontend/misc/settings.ts @@ -39,7 +39,6 @@ export async function settings() { "data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAABAQMAAAAl21bKAAAAA1BMVEW6urpaLVq8AAAACklEQVQI" + "12NgAAAAAgAB4iG8MwAAAABJRU5ErkJggg=="), }; - // settings.skybox = settings.background = ''; // Disable both skybox and background // Auto-override any settings from the URL const url = new URL(window.location.href); diff --git a/frontend/viewer/lighting.ts b/frontend/viewer/lighting.ts index 4ed3820..4d1cbe8 100644 --- a/frontend/viewer/lighting.ts +++ b/frontend/viewer/lighting.ts @@ -48,7 +48,7 @@ export async function setupLighting(modelViewer: ModelViewerElement) { startPan(); }, true); - self.addEventListener('mousemove', (event) => { + document.addEventListener('mousemove', (event) => { if (!panning) return; @@ -65,7 +65,7 @@ export async function setupLighting(modelViewer: ModelViewerElement) { updatePan(thisX); }, true); - self.addEventListener('mouseup', (event) => { + document.addEventListener('mouseup', (event) => { panning = false; }, true);