Skip to content

Commit 03cd995

Browse files
committed
Merge branch 'master' into snap-restrict-element-rect
2 parents 7b3b36b + b9faf54 commit 03cd995

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

interact.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1232,7 +1232,7 @@
12321232
// Collect a new set of possible drops and save them in activeDrops.
12331233
// setActiveDrops should always be called when a drag has just started or a
12341234
// drag event happens while dynamicDrop is true
1235-
function setActiveDrops (dragElement) {
1235+
function setActiveDrops (event, dragElement) {
12361236
// get dropzones and their elements that could recieve the draggable
12371237
var possibleDrops = collectDrops(event, dragElement, true);
12381238

@@ -1249,7 +1249,7 @@
12491249
var validDrops = [];
12501250

12511251
if (dynamicDrop) {
1252-
setActiveDrops(dragElement);
1252+
setActiveDrops(event, dragElement);
12531253
}
12541254

12551255
// collect all dropzones and their elements which qualify for a drop
@@ -2485,7 +2485,7 @@
24852485
activeDrops.rects = [];
24862486

24872487
if (!dynamicDrop) {
2488-
setActiveDrops(target._element);
2488+
setActiveDrops(event, target._element);
24892489
}
24902490

24912491
return dragEvent;

0 commit comments

Comments
 (0)