mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 10:46:00 +00:00
SYNC: fixed selecting in diagrams with zoom
This commit is contained in:
committed by
Diflow
parent
fde257c722
commit
7a5e17a345
@@ -632,9 +632,15 @@
|
||||
const domTable = domTables[x.designerId] as any;
|
||||
if (domTable) {
|
||||
const rect = domTable.getRect();
|
||||
const rectZoomed = {
|
||||
left: rect.left / zoomKoef,
|
||||
right: rect.right / zoomKoef,
|
||||
top: rect.top / zoomKoef,
|
||||
bottom: rect.bottom / zoomKoef,
|
||||
};
|
||||
return {
|
||||
...x,
|
||||
isSelectedTable: rectanglesHaveIntersection(rect, bounds),
|
||||
isSelectedTable: rectanglesHaveIntersection(rectZoomed, bounds),
|
||||
};
|
||||
}
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user