Skip to content

Commit b47d6b3

Browse files
committed
fix: selecting even one multi drag element should be forbidden unless multidragkey is down if set
1 parent 527485d commit b47d6b3

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

plugins/MultiDrag/MultiDrag.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -355,10 +355,7 @@ function MultiDragPlugin() {
355355
children = parentEl.children;
356356

357357
// Multi-drag selection
358-
if (!dragStarted) {
359-
if (options.multiDragKey && !this.multiDragKeyDown) {
360-
MultiDrag.utils.clear();
361-
}
358+
if (!dragStarted && (!options.multiDragKey || this.multiDragKeyDown)) {
362359
toggleClass(dragEl, options.selectedClass, !~multiDragElements.indexOf(dragEl));
363360

364361
if (!~multiDragElements.indexOf(dragEl)) {

0 commit comments

Comments
 (0)