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

Function ontouchstart

src/components/tabView.js:110–120  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

108 );
109
110 function ontouchstart(e) {
111 moveX = 0;
112 moveY = 0;
113 lastX = e.touches[0].clientX;
114 lastY = e.touches[0].clientY;
115 isScrolling = false;
116
117 document.addEventListener("touchmove", omtouchmove, { passive: false });
118 document.addEventListener("touchend", omtouchend);
119 document.addEventListener("touchcancel", omtouchend);
120 }
121
122 function omtouchmove(e) {
123 const { clientX, clientY } = e.touches[0];

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected