MCPcopy Create free account
hub / github.com/TheOrcDev/github-creature / onDocumentTouchStart

Method onDocumentTouchStart

components/liquid-ether.tsx:293–300  ·  view source on GitHub ↗
(event: TouchEvent)

Source from the content-addressed store, hash-verified

291 this.hasUserControl = true;
292 }
293 onDocumentTouchStart(event: TouchEvent) {
294 if (event.touches.length !== 1) return;
295 const t = event.touches[0];
296 if (!this.updateHoverState(t.clientX, t.clientY)) return;
297 if (this.onInteract) this.onInteract();
298 this.setCoords(t.clientX, t.clientY);
299 this.hasUserControl = true;
300 }
301 onDocumentTouchMove(event: TouchEvent) {
302 if (event.touches.length !== 1) return;
303 const t = event.touches[0];

Callers

nothing calls this directly

Calls 2

updateHoverStateMethod · 0.95
setCoordsMethod · 0.95

Tested by

no test coverage detected