2 YUI 3.13.0 (build 508226d)
3 Copyright 2013 Yahoo! Inc. All rights reserved.
4 Licensed under the BSD License.
5 http://yuilibrary.com/license/
8 YUI.add('sortable-scroll', function (Y, NAME) {
12 * Plugin for sortable to handle scrolling lists.
14 * @submodule sortable-scroll
17 * Plugin for sortable to handle scrolling lists.
24 var SortScroll = function() {
25 SortScroll.superclass.constructor.apply(this, arguments);
28 Y.extend(SortScroll, Y.Base, {
29 initializer: function() {
30 var host = this.get('host');
31 host.plug(Y.Plugin.DDNodeScroll, {
32 node: host.get('container')
34 host.delegate.on('drop:over', function(e) {
35 if (this.dd.nodescroll && e.drag.nodescroll) {
36 e.drag.nodescroll.set('parentScroll', Y.one(this.get('container')));
52 * @description The name of the class.
62 * @description The scroll instance.
69 Y.namespace('Y.Plugin');
70 Y.Plugin.SortableScroll = SortScroll;
74 }, '3.13.0', {"requires": ["dd-scroll", "sortable"]});