Skip to content

Commit

Permalink
Fix the deprecated Position.withinIncludingScrollOffsets. [#196 state…
Browse files Browse the repository at this point in the history
…:resolved]
  • Loading branch information
savetheclocktower committed Jul 16, 2008
1 parent a134431 commit c84acf0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG
@@ -1,3 +1,5 @@
* Fix the deprecated Position.withinIncludingScrollOffsets. [jddalton]

* Consolidate document.body getOffsetParent checks into a private utility method. [staaky, jddalton]

* Fix issues with Element#cumulativeScrollOffset and Opera <9.5. [staaky, jddalton]
Expand Down
4 changes: 2 additions & 2 deletions src/deprecated.js
Expand Up @@ -67,8 +67,8 @@ var Position = {
var offsetcache = Element.cumulativeScrollOffset(element),
dimensions = Element.getDimensions(element);

this.xcomp = x + offsetcache[0];
this.ycomp = y + offsetcache[1];
this.xcomp = x + offsetcache[0] - this.deltaX;
this.ycomp = y + offsetcache[1] - this.deltaY;
this.offset = Element.cumulativeOffset(element);

return (this.ycomp >= this.offset[1] &&
Expand Down

0 comments on commit c84acf0

Please sign in to comment.