mirror of
https://github.com/moodle/moodle.git
synced 2025-08-11 20:06:46 +02:00
MDL-47494 ddimageortext: OU-4193 Fix for broken drag and drop with YUI 3.5.1
This commit is contained in:
parent
9a25a40521
commit
93905b6881
1 changed files with 2 additions and 2 deletions
4
question/type/ddimageortext/yui/dd/dd.js
vendored
4
question/type/ddimageortext/yui/dd/dd.js
vendored
|
@ -151,7 +151,7 @@ YUI.add('moodle-qtype_ddimageortext-dd', function(Y) {
|
|||
draggable_for_question : function (drag, group, choice) {
|
||||
var dd = new Y.DD.Drag({
|
||||
node: drag,
|
||||
dragMode: 'intersect'
|
||||
dragMode: 'point'
|
||||
}).plug(Y.Plugin.DDConstrained, {constrain2node: topnode});
|
||||
|
||||
drag.setData('group', group);
|
||||
|
@ -161,7 +161,7 @@ YUI.add('moodle-qtype_ddimageortext-dd', function(Y) {
|
|||
draggable_for_form : function (drag) {
|
||||
var dd = new Y.DD.Drag({
|
||||
node: drag,
|
||||
dragMode: 'intersect'
|
||||
dragMode: 'point'
|
||||
}).plug(Y.Plugin.DDConstrained, {constrain2node: topnode});
|
||||
dd.on('drag:end', function(e) {
|
||||
var dragnode = e.target.get('node');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue