Skip to content

Commit

Permalink
DD Build
Browse files Browse the repository at this point in the history
  • Loading branch information
davglass committed May 15, 2012
1 parent 2ba627a commit aa2d5e6
Show file tree
Hide file tree
Showing 9 changed files with 33 additions and 13 deletions.
8 changes: 5 additions & 3 deletions build/dd-drag/dd-drag-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -1140,9 +1140,11 @@ YUI.add('dd-drag', function(Y) {
* @description This method performs the alignment before the element move.
* @param {Array} eXY The XY to move the element to, usually comes from the mousemove DOM event.
*/
_alignNode: function(eXY) {
_alignNode: function(eXY, scroll) {
this._align(eXY);
this._moveNode();
if (!scroll) {
this._moveNode();
}
},
/**
* @private
Expand Down Expand Up @@ -1194,7 +1196,7 @@ YUI.add('dd-drag', function(Y) {
*/
_defDragFn: function(e) {
if (this.get('move')) {
if (e.scroll) {
if (e.scroll && e.scroll.node) {
e.scroll.node.set('scrollTop', e.scroll.top);
e.scroll.node.set('scrollLeft', e.scroll.left);
}
Expand Down
2 changes: 1 addition & 1 deletion build/dd-drag/dd-drag-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 5 additions & 3 deletions build/dd-drag/dd-drag.js
Original file line number Diff line number Diff line change
Expand Up @@ -1137,9 +1137,11 @@ YUI.add('dd-drag', function(Y) {
* @description This method performs the alignment before the element move.
* @param {Array} eXY The XY to move the element to, usually comes from the mousemove DOM event.
*/
_alignNode: function(eXY) {
_alignNode: function(eXY, scroll) {
this._align(eXY);
this._moveNode();
if (!scroll) {
this._moveNode();
}
},
/**
* @private
Expand Down Expand Up @@ -1191,7 +1193,7 @@ YUI.add('dd-drag', function(Y) {
*/
_defDragFn: function(e) {
if (this.get('move')) {
if (e.scroll) {
if (e.scroll && e.scroll.node) {
e.scroll.node.set('scrollTop', e.scroll.top);
e.scroll.node.set('scrollLeft', e.scroll.left);
}
Expand Down
2 changes: 1 addition & 1 deletion build/dd-plugin/dd-plugin-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -202,4 +202,4 @@ YUI.add('dd-plugin', function(Y) {



}, '@VERSION@' ,{requires:['dd-drag'], skinnable:false, optional:['dd-constrain', 'dd-proxy']});
}, '@VERSION@' ,{optional:['dd-constrain', 'dd-proxy'], requires:['dd-drag'], skinnable:false});
2 changes: 1 addition & 1 deletion build/dd-plugin/dd-plugin-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion build/dd-plugin/dd-plugin.js
Original file line number Diff line number Diff line change
Expand Up @@ -197,4 +197,4 @@ YUI.add('dd-plugin', function(Y) {



}, '@VERSION@' ,{requires:['dd-drag'], skinnable:false, optional:['dd-constrain', 'dd-proxy']});
}, '@VERSION@' ,{optional:['dd-constrain', 'dd-proxy'], requires:['dd-drag'], skinnable:false});
10 changes: 9 additions & 1 deletion build/dd-scroll/dd-scroll-debug.js
Original file line number Diff line number Diff line change
Expand Up @@ -235,7 +235,15 @@ YUI.add('dd-scroll', function(Y) {
if (nl < 0) {
nl = xy[0];
}
if (ho.con) {
if (!ho.con.inRegion([nl + sl, nt + st])) {
move = false;
}
}
if (move) {
ho.actXY = [nl, nt];
ho._alignNode([nl, nt], true); //We are srolling..
xy = ho.actXY;
ho.actXY = [nl, nt];
ho._moveNode({ node: win, top: st, left: sl});
if (!st && !sl) {
Expand Down Expand Up @@ -416,4 +424,4 @@ YUI.add('dd-scroll', function(Y) {



}, '@VERSION@' ,{requires:['dd-drag'], skinnable:false, optional:['dd-proxy']});
}, '@VERSION@' ,{optional:['dd-proxy'], requires:['dd-drag'], skinnable:false});
Loading

0 comments on commit aa2d5e6

Please sign in to comment.