From 1276f27fd34163c0a2c5f92898c7347604115126 Mon Sep 17 00:00:00 2001 From: ville rantanen Date: Thu, 26 Oct 2017 11:23:54 +0300 Subject: [PATCH] okay, lets add a constant for screen height --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index cbb786a..02a3374 100644 --- a/index.html +++ b/index.html @@ -369,7 +369,7 @@ function fold_initial() { for(var i = 0; i < slides.length; i++) { var el = slides.item(i); var rect = el.getBoundingClientRect(); - if (window.innerHeight < rect.top) { + if (window.innerHeight*1.5 < rect.top) { var name = el.id.replace("head_",""); fold_content(name); }