SYNC: fixed zoom

This commit is contained in:
SPRINX0\prochazka
2025-04-02 13:33:49 +02:00
committed by Diflow
parent a9412b418f
commit 59f763162c

View File

@@ -981,7 +981,7 @@
on:dragover={e => e.preventDefault()}
on:drop={handleDrop}
style={`width:${canvasWidth / zoomKoef}px;height:${canvasHeight / zoomKoef}px;
${settings?.customizeStyle && value?.style?.zoomKoef ? `zoom:${value?.style?.zoomKoef};` : ''}
${settings?.customizeStyle && value?.style?.zoomKoef ? `transform:scale(${value?.style?.zoomKoef});transform-origin: top left;` : ''}
`}
on:mousedown={e => {
if (e.button == 0 && settings?.canSelectTables) {