diff --git a/src/components/DrawArea.tsx b/src/components/DrawArea.tsx index e85a7dde..c6d7db1e 100644 --- a/src/components/DrawArea.tsx +++ b/src/components/DrawArea.tsx @@ -85,7 +85,21 @@ const DrawArea: FunctionComponent = ({ }} > - + { + document.body.style.cursor = "grab"; + }} + onMouseDown={(event) => { + document.body.style.cursor = "grabbing"; + }} + onMouseUp={(event) => { + document.body.style.cursor = "grab"; + }} + onMouseLeave={(event) => { + document.body.style.cursor = "default"; + }} + /> {ignoreAreas.map((rect, i) => { return ( { height: Math.max(node.height() * scaleY), }); }} + onMouseOver={(event) => { + document.body.style.cursor = "pointer"; + }} + onMouseDown={(event) => { + document.body.style.cursor = "grabbing"; + }} + onMouseUp={(event) => { + document.body.style.cursor = "grab"; + }} + onMouseLeave={(event) => { + document.body.style.cursor = "default"; + }} /> {isSelected && (