diff --git a/src/main.ts b/src/main.ts index d55ef56..054b40b 100644 --- a/src/main.ts +++ b/src/main.ts @@ -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); });