소스 검색

made first scroll synchronous

Gildas 7 년 전
부모
커밋
aa7d1c33fe
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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;
 	delete window._singleFile_getBoundingClientRect;
-	requestAnimationFrame(() => scrollBy(0, 1));
+	scrollBy(0, 1);
 	requestAnimationFrame(() => scrollBy(0, -1));
 
 })();