MCPcopy Create free account
hub / github.com/code100x/chess / handleRightClick

Function handleRightClick

apps/frontend/src/components/ChessBoard.tsx:114–120  ·  view source on GitHub ↗
(squareRep: string)

Source from the content-addressed store, hash-verified

112 };
113
114 const handleRightClick = (squareRep: string) => {
115 if (rightClickedSquares.includes(squareRep)) {
116 setRightClickedSquares((prev) => prev.filter((sq) => sq !== squareRep));
117 } else {
118 setRightClickedSquares((prev) => [...prev, squareRep]);
119 }
120 };
121
122 const handleDrawArrow = (squareRep: string) => {
123 if (arrowStart) {

Callers 1

handleMouseUpFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected