Ver código fonte

made first scroll synchronous

Gildas 7 anos atrás
pai
commit
aa7d1c33fe
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      lib/single-file/lazy-loader-after.js

+ 1 - 1
lib/single-file/lazy-loader-after.js

@@ -24,7 +24,7 @@
 
 
 	Element.prototype.getBoundingClientRect = window._singleFile_getBoundingClientRect;
 	Element.prototype.getBoundingClientRect = window._singleFile_getBoundingClientRect;
 	delete window._singleFile_getBoundingClientRect;
 	delete window._singleFile_getBoundingClientRect;
-	requestAnimationFrame(() => scrollBy(0, 1));
+	scrollBy(0, 1);
 	requestAnimationFrame(() => scrollBy(0, -1));
 	requestAnimationFrame(() => scrollBy(0, -1));
 
 
 })();
 })();