mirror of
https://github.com/excalidraw/excalidraw.git
synced 2025-05-03 10:00:07 -04:00
fix: cross-group selection incorrectly allowed in specific cases
This commit is contained in:
parent
3cfcc7b489
commit
8e76ba8237
1 changed files with 3 additions and 2 deletions
|
@ -6845,8 +6845,9 @@ class App extends React.Component<AppProps, AppState> {
|
|||
// With shift-selection, we want to make sure that frames and their containing
|
||||
// elements are not selected at the same time.
|
||||
if (
|
||||
!someHitElementIsSelected &&
|
||||
!pointerDownState.hit.hasHitCommonBoundingBoxOfSelectedElements
|
||||
event.shiftKey ||
|
||||
(!someHitElementIsSelected &&
|
||||
!pointerDownState.hit.hasHitCommonBoundingBoxOfSelectedElements)
|
||||
) {
|
||||
this.setState((prevState) => {
|
||||
const nextSelectedElementIds: { [id: string]: true } = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue