Skip to content
This repository was archived by the owner on Jan 24, 2018. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/skrollr.js
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@
* That is, calculate anchor position and offset of element.
*/
Skrollr.prototype.relativeToAbsolute = function(element, viewportAnchor, elementAnchor) {
var viewportHeight = documentElement.clientHeight;
var viewportHeight = window.innerHeight;
var box = element.getBoundingClientRect();
var absolute = box.top;

Expand Down Expand Up @@ -1636,4 +1636,4 @@

//Animation frame id returned by RequestAnimationFrame (or timeout when RAF is not supported).
var _animFrame;
}(window, document));
}(window, document));