fix sticky seek in tron index.html on linux

This commit is contained in:
Clement Denis 2020-06-11 10:24:03 +02:00
parent ffe0ff0bfd
commit 785aef3832
1 changed files with 1 additions and 1 deletions

View File

@ -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))