feat: allow inner-drag-selecting with cmd/ctrl (#3603)

* feat: allow inner-drag-selecting with cmd/ctrl

* don't use  cursor when pressing cmd/ctrl

* ensure we reset deselected groups

* add tests

* add docs

* couple fixes around group selection
This commit is contained in:
David Luzar
2021-05-20 22:28:34 +02:00
committed by GitHub
parent f4e10c93e1
commit 6d40039f08
6 changed files with 228 additions and 20 deletions

View File

@ -56,9 +56,8 @@ const populateElements = (
y,
width,
height,
groupIds,
});
// @ts-ignore
element.groupIds = groupIds;
if (isSelected) {
selectedElementIds[element.id] = true;
}