1
0
Fork 0

Removed errors when scrolling

This commit is contained in:
haselkern 2017-01-13 20:20:55 +01:00
parent 9af51caf46
commit 24f0119823

View file

@ -52,6 +52,9 @@ function resize(){
// http://stackoverflow.com/a/488073/1456971
function isScrolledIntoView(elem) {
if(!elem.is(":visible")) return false;
var docViewTop = $(window).scrollTop();
var docViewBottom = docViewTop + $(window).height();