Skip to content

Free, simple, and intuitive online database diagram editor and SQL generator.

Fix moving tables not working in simple canvas

1ilitfaf4b157ff0c
diff --git a/src/components/SimpleCanvas.jsx b/src/components/SimpleCanvas.jsx
index a2742559..2ea0f586 100644
--- a/src/components/SimpleCanvas.jsx
+++ b/src/components/SimpleCanvas.jsx
@@ -199,7 +199,7 @@ export default function SimpleCanvas({ diagram, zoom }) {
<svg
className="w-full h-full cursor-grab"
onPointerUp={(e) => e.isPrimary && releaseTable()}
- onPointerMove={(e) => e.isPrimary && moveTable()}
+ onPointerMove={(e) => e.isPrimary && moveTable(e)}
onPointerLeave={(e) => e.isPrimary && releaseTable()}
>
<defs>