MCPcopy Create free account
hub / github.com/graphif/project-graph / onTouchMove

Function onTouchMove

app/src/components/render-sub-windows.tsx:73–79  ·  view source on GitHub ↗
(e: TouchEvent)

Source from the content-addressed store, hash-verified

71 window.removeEventListener("touchmove", onTouchMove);
72 };
73 const onTouchMove = (e: TouchEvent) => {
74 if (e.touches.length > 1) return;
75 const touch = e.touches[0];
76 const delta = new Vector(touch.clientX, touch.clientY).subtract(start);
77 const newRect = win.rect.translate(delta);
78 SubWindow.update(win.id, { rect: newRect });
79 };
80 window.addEventListener("touchend", onTouchEnd);
81 window.addEventListener("touchmove", onTouchMove);
82 }}

Callers

nothing calls this directly

Calls 4

translateMethod · 0.80
subtractMethod · 0.45
updateMethod · 0.45
addMethod · 0.45

Tested by

no test coverage detected