Skip to content

Commit

Permalink
Fix broken scroll calculation in IE 11
Browse files Browse the repository at this point in the history
  • Loading branch information
lemonmade committed Apr 4, 2015
1 parent 95ad83c commit 033a250
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/coffee/bigfoot.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -1126,11 +1126,13 @@
# @returns {Object} - The height, width, and scrollX/Y properties of the window.

viewportDetails = () ->
$window = $(window)

{
width: window.innerWidth
height: window.innerHeight
scrollX: window.scrollX
scrollY: window.scrollY
scrollX: $window.scrollLeft()
scrollY: $window.scrollTop()
}


Expand Down

0 comments on commit 033a250

Please sign in to comment.