mirror of https://github.com/01-edu/public.git
fix sticky seek in tron index.html on linux
This commit is contained in:
parent
ffe0ff0bfd
commit
785aef3832
|
@ -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…
Reference in New Issue