mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
Update box selection to use partial overlap
Changes the behavior of drag selection to check for partial overlap rather than complete overlap, in line with other graphics programs
This commit is contained in:
parent
7d8b7fc14d
commit
c299246c8d
1 changed files with 4 additions and 4 deletions
|
@ -74,10 +74,10 @@ export const getElementsWithinSelection = (
|
|||
element.locked === false &&
|
||||
element.type !== "selection" &&
|
||||
!isBoundToContainer(element) &&
|
||||
selectionX1 <= elementX1 &&
|
||||
selectionY1 <= elementY1 &&
|
||||
selectionX2 >= elementX2 &&
|
||||
selectionY2 >= elementY2
|
||||
selectionX1 <= elementX2 &&
|
||||
selectionY1 <= elementY2 &&
|
||||
selectionX2 >= elementX1 &&
|
||||
selectionY2 >= elementY1
|
||||
);
|
||||
});
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue