mirror of
https://github.com/kou029w/pucchinglgl.git
synced 2025-01-18 16:18:00 +00:00
fix: handle mousedown
This commit is contained in:
parent
025a9c511b
commit
bdb7e849c4
1 changed files with 1 additions and 0 deletions
|
@ -112,6 +112,7 @@ function main() {
|
||||||
root.addEventListener("keydown", handleKeydown);
|
root.addEventListener("keydown", handleKeydown);
|
||||||
root.addEventListener("touchstart", handleTouchmove, { passive: false });
|
root.addEventListener("touchstart", handleTouchmove, { passive: false });
|
||||||
root.addEventListener("touchmove", handleTouchmove, { passive: false });
|
root.addEventListener("touchmove", handleTouchmove, { passive: false });
|
||||||
|
root.addEventListener("mousedown", handleMouseMove);
|
||||||
root.addEventListener("mousedown", () => {
|
root.addEventListener("mousedown", () => {
|
||||||
root.addEventListener("mousemove", handleMouseMove);
|
root.addEventListener("mousemove", handleMouseMove);
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue