Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

MDL-34328 Correct usage of e.drop when catching missed drag/drop events

  • Loading branch information...
commit 2b42518aa7796cbc8764684048d40f0203ee6b4a 1 parent 1e78b3e
@andrewnicols andrewnicols authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/yui/dragdrop/dragdrop.js
View
2  lib/yui/dragdrop/dragdrop.js
@@ -167,11 +167,11 @@ YUI.add('moodle-core-dragdrop', function(Y) {
// we substitute them for the ease of use. For e.drop we use,
// this.lastdroptarget (ghost node we use for indicating where to drop)
e.drag = e.target;
+ e.drop = this.lastdroptarget;
// Check that drop object belong to correct group
if (!e.drop || !e.drop.inGroup(this.groups)) {
return;
}
- e.drop = this.lastdroptarget;
this.drag_dropmiss(e);
},
Please sign in to comment.
Something went wrong with that request. Please try again.