MCPcopy Create free account
hub / github.com/OpenSIST/OpenSIST.github.io / onTouchMove

Function onTouchMove

src/Components/Home/home.jsx:162–171  ·  view source on GitHub ↗
(e)

Source from the content-addressed store, hash-verified

160 touchStartY = e.touches[0].clientY;
161 };
162 const onTouchMove = (e) => {
163 if (touchStartY === null) return;
164 const dy = touchStartY - e.touches[0].clientY;
165 if (canScrollWithin(dy)) return;
166 e.preventDefault();
167 if (Math.abs(dy) > 40) {
168 go(dy);
169 touchStartY = null;
170 }
171 };
172 node.addEventListener("wheel", onWheel, {passive: false});
173 node.addEventListener("touchstart", onTouchStart, {passive: true});
174 node.addEventListener("touchmove", onTouchMove, {passive: false});

Callers

nothing calls this directly

Calls 2

canScrollWithinFunction · 0.85
goFunction · 0.85

Tested by

no test coverage detected