Cleaning up

This commit is contained in:
Yeicor
2025-07-19 16:57:37 +02:00
parent a2275f2897
commit 9ef372f576
2 changed files with 2 additions and 3 deletions

View File

@@ -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);

View File

@@ -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);