mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-29 02:56:01 +00:00
SYNC: fixed zoom
This commit is contained in:
committed by
Diflow
parent
a9412b418f
commit
59f763162c
@@ -981,7 +981,7 @@
|
|||||||
on:dragover={e => e.preventDefault()}
|
on:dragover={e => e.preventDefault()}
|
||||||
on:drop={handleDrop}
|
on:drop={handleDrop}
|
||||||
style={`width:${canvasWidth / zoomKoef}px;height:${canvasHeight / zoomKoef}px;
|
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 => {
|
on:mousedown={e => {
|
||||||
if (e.button == 0 && settings?.canSelectTables) {
|
if (e.button == 0 && settings?.canSelectTables) {
|
||||||
|
|||||||
Reference in New Issue
Block a user