Skip to content
This repository was archived by the owner on Jun 24, 2024. It is now read-only.

Commit

Permalink
Fix getting position of scroll in IE
Browse files Browse the repository at this point in the history
  • Loading branch information
pzurowski committed Aug 20, 2014
1 parent 1dba344 commit 8847050
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/scrollspy.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ mod.service('ScrollSpy', function($window) {
height: w.innerHeight,
maxWidth: w.document.body.scrollWidth,
maxHeight: w.document.body.scrollHeight,
posX: w.scrollX,
posY: w.scrollY
posX: w.scrollX || w.pageXOffset || w.document.documentElement.scrollLeft,
posY: w.scrollY || w.pageYOffset || w.document.documentElement.scrollTop
};

// remove but log overscroll
Expand Down

0 comments on commit 8847050

Please sign in to comment.