From 9ef372f5764faa981b48e4fc53ff1e0c7ad42c1a Mon Sep 17 00:00:00 2001 From: Yeicor <4929005+Yeicor@users.noreply.github.com> Date: Sat, 19 Jul 2025 16:57:37 +0200 Subject: [PATCH] Cleaning up --- frontend/misc/settings.ts | 1 - frontend/viewer/lighting.ts | 4 ++-- 2 files changed, 2 insertions(+), 3 deletions(-) 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);