MCPcopy Create free account
hub / github.com/cartesiancs/map3d / handleClick

Function handleClick

src/three/Car.tsx:70–74  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 useEffect(() => {
69 if (thirdMode) {
70 const handleClick = () => {
71 if (document.pointerLockElement !== document.body) {
72 document.body.requestPointerLock();
73 }
74 };
75 window.addEventListener("click", handleClick);
76 return () => window.removeEventListener("click", handleClick);
77 }

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected