Skip to content
Browse files

MDL-33926 Add window scrolling when drag/dropping

  • Loading branch information...
1 parent 4c8926c commit 26992cf17119f7c556a23704c94a95738c8c6c7d @andrewnicols andrewnicols committed with nebgor Jun 22, 2012
Showing with 5 additions and 5 deletions.
  1. +3 −3 course/yui/dragdrop/dragdrop.js
  2. +2 −2 lib/yui/blocks/blocks.js
View
6 course/yui/dragdrop/dragdrop.js
@@ -91,7 +91,7 @@ YUI.add('moodle-course-dragdrop', function(Y) {
// Keep it inside the .course-content
constrain: '#'+CSS.PAGECONTENT,
stickY: true
- });
+ }).plug(Y.Plugin.DDWinScroll);
}
}
}, this);
@@ -306,7 +306,7 @@ YUI.add('moodle-course-dragdrop', function(Y) {
}).plug(Y.Plugin.DDConstrained, {
// Keep it inside the .course-content
constrain: '#'+CSS.PAGECONTENT
- });
+ }).plug(Y.Plugin.DDWinScroll);
}
}, this);
},
@@ -411,4 +411,4 @@ YUI.add('moodle-course-dragdrop', function(Y) {
M.course.init_section_dragdrop = function(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']});
View
4 lib/yui/blocks/blocks.js
@@ -87,7 +87,7 @@ YUI.add('moodle-core-blocks', function(Y) {
}).plug(Y.Plugin.DDConstrained, {
// Keep it inside the .course-content
constrain: '#'+CSS.PAGECONTENT
- });
+ }).plug(Y.Plugin.DDWinScroll);
}
}, this);
}, this);
@@ -267,5 +267,5 @@ YUI.add('moodle-core-blocks', function(Y) {
M.core_blocks.init_dragdrop = function(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']});

0 comments on commit 26992cf

Please sign in to comment.
Something went wrong with that request. Please try again.