Permalink
Browse files

Merge branch 'master' of https://github.com/fragility/scriptaculous i…

…nto fragility-master
  • Loading branch information...
madrobby committed Dec 23, 2010
2 parents 32a95c8 + 28a8074 commit 6f891664625db2ec15c9679f1a9a34f1f43e7ed4
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/dragdrop.js
View
@@ -372,7 +372,7 @@ var Draggable = Class.create({
if (this.options.scroll == window) {
with(this._getWindowScroll(this.options.scroll)) { p = [ left, top, left+width, top+height ]; }
} else {
- p = Position.page(this.options.scroll);
+ p = Position.page(this.options.scroll).toArray();
p[0] += this.options.scroll.scrollLeft + Position.deltaX;
p[1] += this.options.scroll.scrollTop + Position.deltaY;
p.push(p[0]+this.options.scroll.offsetWidth);

0 comments on commit 6f89166

Please sign in to comment.