SYNC: fixed selecting in diagrams with zoom

This commit is contained in:
SPRINX0\prochazka
2025-03-31 13:29:25 +02:00
committed by Diflow
parent fde257c722
commit 7a5e17a345
2 changed files with 17 additions and 6 deletions

View File

@@ -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),
};
}
}),