fix(selection): handle overlapping area rounding issues closes #610

This commit is contained in:
moklick
2020-10-21 22:13:09 +02:00
parent d489917b66
commit 13a3fd46b1
2 changed files with 3 additions and 3 deletions
+2 -2
View File
@@ -288,8 +288,8 @@ export const storeModel: StoreModel = {
...state.userSelectionRect,
x: negativeX ? mousePos.x : state.userSelectionRect.x,
y: negativeY ? mousePos.y : state.userSelectionRect.y,
width: negativeX ? startX - mousePos.x : mousePos.x - startX,
height: negativeY ? startY - mousePos.y : mousePos.y - startY,
width: Math.abs(mousePos.x - startX),
height: Math.abs(mousePos.y - startY),
};
const selectedNodes = getNodesInside(state.nodes, nextRect, state.transform);