MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / touchcancel

Function touchcancel

src/handlers/quickToolsInit.js:308–316  ·  view source on GitHub ↗

* * @param {TouchEvent} e

(e)

Source from the content-addressed store, hash-verified

306 * @param {TouchEvent} e
307 */
308function 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

Callers 1

touchendFunction · 0.85

Calls 1

removeMethod · 0.45

Tested by

no test coverage detected