document.getElementById('scroll').addEventListener('scroll', function () {
$this.isScrolling = true;
- $this.checkScroll($(this).scrollTop());
+ $this.checkScroll();
}, {passive: true});
document.getElementById('scroll').addEventListener('touchend', function () {
}
var $this = this;
if (delay === undefined) {
- delay = 800;
+ if (this.fluidbook.settings.mobilefirstLinksRevealDelay === undefined || null == this.fluidbook.settings.mobilefirstLinksRevealDelay) {
+ this.fluidbook.settings.mobilefirstLinksRevealDelay = 0.8;
+ }
+ delay = Math.max(0, parseFloat(this.fluidbook.settings.mobilefirstLinksRevealDelay) * 1000);
}
+
$("#links .link:not(.revealed):visible, .clinks [data-animations]:not(.revealed), .ctlinks [data-animations]:not(.revealed)").each(function () {
var rect = $(this).get(0).getBoundingClientRect();
if (rect.top === 0 && rect.left === 0 && rect.width === 0 && rect.height === 0) {