mirror of
https://github.com/RGBCube/rgbcube.github.io
synced 2025-07-24 23:47:42 +00:00
Remove unused code
This commit is contained in:
parent
330086f09f
commit
825d7df117
1 changed files with 6 additions and 9 deletions
15
index.html
15
index.html
|
@ -307,16 +307,13 @@
|
|||
|
||||
let velocity = 0;
|
||||
|
||||
const mouseLeaveListener = (event) => {
|
||||
document.addEventListener("mouseleave", () => {
|
||||
mouse.down = false;
|
||||
mouse.previous = {
|
||||
x: event.clientX,
|
||||
y: event.clientY,
|
||||
};
|
||||
};
|
||||
});
|
||||
|
||||
document.addEventListener("mouseleave", mouseLeaveListener);
|
||||
document.addEventListener("mouseup", mouseLeaveListener);
|
||||
document.addEventListener("mouseup", () => {
|
||||
mouse.down = false;
|
||||
});
|
||||
|
||||
document.addEventListener("mousedown", () => {
|
||||
mouse.down = true;
|
||||
|
@ -353,4 +350,4 @@
|
|||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue