mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-33926 Add window scrolling when drag/dropping
This commit is contained in:
parent
4c8926c7c3
commit
26992cf171
2 changed files with 5 additions and 5 deletions
6
course/yui/dragdrop/dragdrop.js
vendored
6
course/yui/dragdrop/dragdrop.js
vendored
|
@ -91,7 +91,7 @@ YUI.add('moodle-course-dragdrop', function(Y) {
|
||||||
// Keep it inside the .course-content
|
// Keep it inside the .course-content
|
||||||
constrain: '#'+CSS.PAGECONTENT,
|
constrain: '#'+CSS.PAGECONTENT,
|
||||||
stickY: true
|
stickY: true
|
||||||
});
|
}).plug(Y.Plugin.DDWinScroll);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
|
@ -306,7 +306,7 @@ YUI.add('moodle-course-dragdrop', function(Y) {
|
||||||
}).plug(Y.Plugin.DDConstrained, {
|
}).plug(Y.Plugin.DDConstrained, {
|
||||||
// Keep it inside the .course-content
|
// Keep it inside the .course-content
|
||||||
constrain: '#'+CSS.PAGECONTENT
|
constrain: '#'+CSS.PAGECONTENT
|
||||||
});
|
}).plug(Y.Plugin.DDWinScroll);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
},
|
},
|
||||||
|
@ -411,4 +411,4 @@ YUI.add('moodle-course-dragdrop', function(Y) {
|
||||||
M.course.init_section_dragdrop = function(params) {
|
M.course.init_section_dragdrop = function(params) {
|
||||||
new DRAGSECTION(params);
|
new DRAGSECTION(params);
|
||||||
}
|
}
|
||||||
}, '@VERSION@', {requires:['base', 'node', 'io', 'dom', 'dd', 'moodle-core-dragdrop', 'moodle-enrol-notification', 'moodle-course-coursebase']});
|
}, '@VERSION@', {requires:['base', 'node', 'io', 'dom', 'dd', 'dd-scroll', 'moodle-core-dragdrop', 'moodle-enrol-notification', 'moodle-course-coursebase']});
|
||||||
|
|
4
lib/yui/blocks/blocks.js
vendored
4
lib/yui/blocks/blocks.js
vendored
|
@ -87,7 +87,7 @@ YUI.add('moodle-core-blocks', function(Y) {
|
||||||
}).plug(Y.Plugin.DDConstrained, {
|
}).plug(Y.Plugin.DDConstrained, {
|
||||||
// Keep it inside the .course-content
|
// Keep it inside the .course-content
|
||||||
constrain: '#'+CSS.PAGECONTENT
|
constrain: '#'+CSS.PAGECONTENT
|
||||||
});
|
}).plug(Y.Plugin.DDWinScroll);
|
||||||
}
|
}
|
||||||
}, this);
|
}, this);
|
||||||
}, this);
|
}, this);
|
||||||
|
@ -267,5 +267,5 @@ YUI.add('moodle-core-blocks', function(Y) {
|
||||||
M.core_blocks.init_dragdrop = function(params) {
|
M.core_blocks.init_dragdrop = function(params) {
|
||||||
new DRAGBLOCK(params);
|
new DRAGBLOCK(params);
|
||||||
}
|
}
|
||||||
}, '@VERSION@', {requires:['base', 'node', 'io', 'dom', 'dd', 'moodle-core-dragdrop', 'moodle-enrol-notification']});
|
}, '@VERSION@', {requires:['base', 'node', 'io', 'dom', 'dd', 'dd-scroll', 'moodle-core-dragdrop', 'moodle-enrol-notification']});
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue