Fix panning

This commit is contained in:
1ilit
2023-09-19 15:49:48 +03:00
parent 4ec9f3f55b
commit 982d2daa11
3 changed files with 15 additions and 32 deletions

View File

@@ -41,6 +41,7 @@ export default function Editor(props) {
strictMode: false,
showFieldSummary: true,
zoom: 1,
pan: {x: 0, y: 0},
showGrid: true,
});
const [undoStack, setUndoStack] = useState([]);