From bdb7e849c4780e1fb4687746c444a4a7023177f4 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Tue, 29 Dec 2020 16:44:11 +0900 Subject: [PATCH] fix: handle mousedown --- src/main.ts | 1 + 1 file changed, 1 insertion(+) 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); });