okay, lets add a constant for screen height

This commit is contained in:
ville rantanen
2017-10-26 11:23:54 +03:00
parent 1189f3a842
commit 1276f27fd3

View File

@@ -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);
}