MCPcopy Create free account
hub / github.com/Qinbf/groundmap / onPointerLeave

Function onPointerLeave

web/components/GraphView.tsx:734–741  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

732 };
733
734 const onPointerLeave = () => {
735 if (!draggingRef.current && hoverIdRef.current) {
736 hoverIdRef.current = null;
737 draw();
738 }
739 // 离开画布:清 hover,但保留选中的持久高亮 + 其信息卡
740 cardFor(selectedIdRef.current);
741 };
742
743 canvas.addEventListener("pointermove", onPointerMove);
744 canvas.addEventListener("pointerdown", onPointerDown);

Callers

nothing calls this directly

Calls 1

cardForFunction · 0.85

Tested by

no test coverage detected