MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / onTouchMove

Function onTouchMove

demo/App.tsx:255–260  ·  view source on GitHub ↗
(e: TouchEvent)

Source from the content-addressed store, hash-verified

253 touchStartY = e.touches[0]?.clientY ?? 0;
254 };
255 const onTouchMove = (e: TouchEvent) => {
256 const y = e.touches[0]?.clientY ?? 0;
257 if (y > touchStartY + 12) {
258 userScrolledUpRef.current = true;
259 }
260 };
261
262 el.addEventListener("wheel", onWheel, { passive: true });
263 el.addEventListener("touchstart", onTouchStart, { passive: true });

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected