From 785aef3832ab565778621b0f5004bdeb6325afec Mon Sep 17 00:00:00 2001 From: Clement Denis Date: Thu, 11 Jun 2020 10:24:03 +0200 Subject: [PATCH] fix sticky seek in tron index.html on linux --- subjects/tron/index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/subjects/tron/index.html b/subjects/tron/index.html index fa32d925..7e042ae3 100644 --- a/subjects/tron/index.html +++ b/subjects/tron/index.html @@ -266,7 +266,7 @@ const start = async ({ urls, seed }) => { } } - window.onmousemove = (e) => e.which ? (down && setPosition(e)) : (down = false) + window.onmousemove = (e) => e.buttons ? (down && setPosition(e)) : (down = false) bar.onmousedown = (e) => (down = true) && setPosition(e) bar.onwheel = canvas.onwheel = (e) => setPosition(t + Math.sign(e.deltaY) * (e.shiftKey ? 10 : 1))