1
Fork 0
mirror of https://github.com/RGBCube/rgbcube.github.io synced 2025-07-26 00:17:45 +00:00

Remove unused code

This commit is contained in:
RGBCube 2023-12-18 10:39:56 +03:00
parent 330086f09f
commit 825d7df117
No known key found for this signature in database

View file

@ -307,16 +307,13 @@
let velocity = 0; let velocity = 0;
const mouseLeaveListener = (event) => { document.addEventListener("mouseleave", () => {
mouse.down = false; mouse.down = false;
mouse.previous = { });
x: event.clientX,
y: event.clientY,
};
};
document.addEventListener("mouseleave", mouseLeaveListener); document.addEventListener("mouseup", () => {
document.addEventListener("mouseup", mouseLeaveListener); mouse.down = false;
});
document.addEventListener("mousedown", () => { document.addEventListener("mousedown", () => {
mouse.down = true; mouse.down = true;
@ -353,4 +350,4 @@
</script> </script>
</body> </body>
</html> </html>