refactor(drag-handler): allow multiselection with ctrl #2203

This commit is contained in:
moklick
2022-06-16 13:35:45 +02:00
parent 7cddc81d86
commit aae202388f
-1
View File
@@ -131,7 +131,6 @@ function useDrag({
.filter((event: MouseEvent) => {
const target = event.target as HTMLDivElement;
const isDraggable =
!event.ctrlKey &&
!event.button &&
(!noDragClassName || !hasSelector(target, `.${noDragClassName}`, nodeRef)) &&
(!handleSelector || hasSelector(target, handleSelector, nodeRef));