* * @param {TouchEvent} e
(e)
| 306 | * @param {TouchEvent} e |
| 307 | */ |
| 308 | function touchcancel(e) { |
| 309 | document.removeEventListener("keyup", touchcancel); |
| 310 | document.removeEventListener("touchend", touchend); |
| 311 | document.removeEventListener("touchcancel", touchcancel); |
| 312 | document.removeEventListener("touchmove", touchmove); |
| 313 | clearTimeout(timeout); |
| 314 | clearTimeout(contextmenuTimeout); |
| 315 | if (!active) $touchstart.classList.remove("active"); |
| 316 | } |
| 317 | |
| 318 | /** |
| 319 | * Handler for contextmenu event |