3
Copyright 2012 Yahoo! Inc. All rights reserved.
4
Licensed under the BSD License.
5
http://yuilibrary.com/license/
7
YUI.add('sortable-scroll', function(Y) {
11
* Plugin for sortable to handle scrolling lists.
13
* @submodule sortable-scroll
16
* Plugin for sortable to handle scrolling lists.
23
var SortScroll = function() {
24
SortScroll.superclass.constructor.apply(this, arguments);
27
Y.extend(SortScroll, Y.Base, {
28
initializer: function() {
29
var host = this.get('host');
30
host.plug(Y.Plugin.DDNodeScroll, {
31
node: host.get('container')
33
host.delegate.on('drop:over', function(e) {
34
if (this.dd.nodescroll && e.drag.nodescroll) {
35
e.drag.nodescroll.set('parentScroll', Y.one(this.get('container')));
51
* @description The name of the class.
61
* @description The scroll instance.
68
Y.namespace('Y.Plugin');
69
Y.Plugin.SortableScroll = SortScroll;
73
}, '3.5.1' ,{requires:['sortable', 'dd-scroll']});