Also update lines on touchend

This commit is contained in:
Hans5958 2023-04-07 16:14:07 +07:00
parent fb9e080bf6
commit b78e1b8816
2 changed files with 2 additions and 3 deletions

View file

@ -498,6 +498,7 @@ async function init() {
if (e.touches.length === 0) {
mouseup()
setTimeout(() => updateLines(), 0)
} else if (e.touches.length === 1) {
initialPinchZoom = zoom

View file

@ -835,9 +835,7 @@ function initViewGlobal() {
//console.log("Foo!!")
dragging = false
fixed = false
setTimeout(function () {
updateHovering(e, true)
}, 10)
setTimeout(() => updateHovering(e, true), 0)
})
if (window.location.hash) { // both "/" and just "/#" will be an empty hash string