Browse Source

fix sticky seek in tron index.html on linux

pull/578/head
Clement Denis 4 years ago
parent
commit
785aef3832
  1. 2
      subjects/tron/index.html

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

Loading…
Cancel
Save