MCPcopy Index your code
hub / github.com/ionic-team/ionic-framework / cancelActive

Function cancelActive

core/src/utils/tap-click/index.ts:20–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

18 const clearDefers = new WeakMap<HTMLElement, any>();
19
20 const cancelActive = () => {
21 if (activeDefer) clearTimeout(activeDefer);
22 activeDefer = undefined;
23 if (activatableEle) {
24 removeActivated(false);
25 activatableEle = undefined;
26 }
27 };
28
29 const pointerDown = (ev: PointerEvent) => {
30 // Ignore right clicks

Callers

nothing calls this directly

Calls 1

removeActivatedFunction · 0.85

Tested by

no test coverage detected