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

Method handleTouchEnd

src/pages/quickTools/quickTools.js:231–243  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

229 }
230
231 handleTouchEnd(e) {
232 clearTimeout(this.longPressTimer);
233
234 if (this.dragState) {
235 this.endDrag();
236 } else if (this.potentialTarget) {
237 // It was a tap
238 if (e.cancelable) e.preventDefault();
239 this.handleClick(this.potentialTarget);
240 }
241
242 this.potentialTarget = null;
243 }
244
245 // --- Mouse Handlers ---
246

Callers

nothing calls this directly

Calls 3

endDragMethod · 0.95
handleClickMethod · 0.95
preventDefaultMethod · 0.45

Tested by

no test coverage detected