another fix
This commit is contained in:
12
src/main.ts
12
src/main.ts
@ -967,12 +967,8 @@ export class Editor {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Creating the application
|
|
||||||
const app = new Editor();
|
const app = new Editor();
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// When the user leaves the page, all the universes should be saved in the localStorage
|
|
||||||
window.addEventListener("beforeunload", () => {
|
window.addEventListener("beforeunload", () => {
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
@ -983,11 +979,3 @@ window.addEventListener("beforeunload", () => {
|
|||||||
app.clock.stop();
|
app.clock.stop();
|
||||||
return null;
|
return null;
|
||||||
});
|
});
|
||||||
|
|
||||||
// function reportMouseCoordinates(event: MouseEvent) {
|
|
||||||
// app._mouseX = event.clientX;
|
|
||||||
// app._mouseY = event.clientY;
|
|
||||||
// }
|
|
||||||
|
|
||||||
onmousemove = function(e){console.log("mouse location:", e.clientX, e.clientY)}
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user