Fix Chrome click bug

This should fix the Chrome click bug.
This commit is contained in:
Samuel Sloniker 2021-07-17 16:34:39 -07:00
parent 5b0c4755bf
commit abcd59d9e2

View File

@ -73,8 +73,8 @@ function touch(e) {
function release(e) {
x = e.layerX
y = e.layerY
x = e.offsetX || e.layerX
y = e.offsetY || e.layerY
w = displayWidth
length = is_short?false:true
ws.send('touch ' + x + ' ' + y + ' ' + w + ' ' + length)