This commit is contained in:
Clarence Chan 2025-04-22 03:49:40 +00:00 committed by GitHub
commit 3e6e7303b2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -7230,8 +7230,9 @@ class App extends React.Component<AppProps, AppState> {
// With shift-selection, we want to make sure that frames and their containing // With shift-selection, we want to make sure that frames and their containing
// elements are not selected at the same time. // elements are not selected at the same time.
if ( if (
!someHitElementIsSelected && event.shiftKey ||
!pointerDownState.hit.hasHitCommonBoundingBoxOfSelectedElements (!someHitElementIsSelected &&
!pointerDownState.hit.hasHitCommonBoundingBoxOfSelectedElements)
) { ) {
this.setState((prevState) => { this.setState((prevState) => {
let nextSelectedElementIds: { [id: string]: true } = { let nextSelectedElementIds: { [id: string]: true } = {