Fix moving tables not working in simple canvas

This commit is contained in:
1ilit 2024-07-22 09:23:24 +03:00
parent d38713eaa0
commit faf4b157ff

View File

@ -199,7 +199,7 @@ export default function SimpleCanvas({ diagram, zoom }) {
<svg <svg
className="w-full h-full cursor-grab" className="w-full h-full cursor-grab"
onPointerUp={(e) => e.isPrimary && releaseTable()} onPointerUp={(e) => e.isPrimary && releaseTable()}
onPointerMove={(e) => e.isPrimary && moveTable()} onPointerMove={(e) => e.isPrimary && moveTable(e)}
onPointerLeave={(e) => e.isPrimary && releaseTable()} onPointerLeave={(e) => e.isPrimary && releaseTable()}
> >
<defs> <defs>