From 033a2508e2c32a6aec38de7de01b13bce380eae4 Mon Sep 17 00:00:00 2001 From: Chris Sauve Date: Sat, 4 Apr 2015 10:47:20 -0400 Subject: [PATCH] Fix broken scroll calculation in IE 11 --- src/coffee/bigfoot.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coffee/bigfoot.coffee b/src/coffee/bigfoot.coffee index e34940c..1aadbaf 100644 --- a/src/coffee/bigfoot.coffee +++ b/src/coffee/bigfoot.coffee @@ -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() }