MCPcopy Create free account
hub / github.com/AmazingAng/PolyWorld / onMouseMove

Function onMouseMove

src/components/ResizeHandle.tsx:41–49  ·  view source on GitHub ↗
(e: MouseEvent)

Source from the content-addressed store, hash-verified

39 const isVertical = direction === "vertical";
40
41 const onMouseMove = (e: MouseEvent) => {
42 if (!dragging.current) return;
43 const pos = isVertical ? e.clientX : e.clientY;
44 const delta = pos - lastPos.current;
45 if (delta !== 0) {
46 lastPos.current = pos;
47 scheduledResize(delta);
48 }
49 };
50
51 const onMouseUp = () => {
52 if (!dragging.current) return;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected