fix: handle mousedown

This commit is contained in:
Nebel 2020-12-29 16:44:11 +09:00
parent 025a9c511b
commit bdb7e849c4

View file

@ -112,6 +112,7 @@ function main() {
root.addEventListener("keydown", handleKeydown);
root.addEventListener("touchstart", handleTouchmove, { passive: false });
root.addEventListener("touchmove", handleTouchmove, { passive: false });
root.addEventListener("mousedown", handleMouseMove);
root.addEventListener("mousedown", () => {
root.addEventListener("mousemove", handleMouseMove);
});