Ver código fonte

removed dispatching of scroll event

Gildas 7 anos atrás
pai
commit
d9dc399c2c

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

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

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

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