Răsfoiți Sursa

dispatch scroll event

Gildas 7 ani în urmă
părinte
comite
f6130af3fb

+ 1 - 0
lib/lazy/web/web-lazy-loader-after.js

@@ -33,5 +33,6 @@
 		delete window._singleFile_getBoundingClientRect;
 	}
 	dispatchEvent(new UIEvent("resize"));
+	dispatchEvent(new UIEvent("scroll"));
 
 })();

+ 1 - 0
lib/lazy/web/web-lazy-loader-before.js

@@ -42,6 +42,7 @@
 		return boundingRect;
 	};
 	dispatchEvent(new UIEvent("resize"));
+	dispatchEvent(new UIEvent("scroll"));
 	dispatchEvent(new CustomEvent(LOAD_OBSERVED_ELEMENTS_EVENT));
 
 })();