From faf4b157ff0cb18866b58473daf2a052e75cce9d Mon Sep 17 00:00:00 2001 From: 1ilit <1ilit@proton.me> Date: Mon, 22 Jul 2024 09:23:24 +0300 Subject: [PATCH] Fix moving tables not working in simple canvas --- src/components/SimpleCanvas.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/SimpleCanvas.jsx b/src/components/SimpleCanvas.jsx index a274255..2ea0f58 100644 --- a/src/components/SimpleCanvas.jsx +++ b/src/components/SimpleCanvas.jsx @@ -199,7 +199,7 @@ export default function SimpleCanvas({ diagram, zoom }) { e.isPrimary && releaseTable()} - onPointerMove={(e) => e.isPrimary && moveTable()} + onPointerMove={(e) => e.isPrimary && moveTable(e)} onPointerLeave={(e) => e.isPrimary && releaseTable()} >