mirror of
https://github.com/yeicor-3d/yet-another-cad-viewer.git
synced 2025-12-19 14:14:13 +01:00
Cleaning up
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user