Преглед изворни кода

made first scroll synchronous

Gildas пре 7 година
родитељ
комит
77375b469f
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      lib/single-file/lazy-loader-before.js

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

@@ -31,7 +31,7 @@
 		const right = left + boundingRect.width;
 		return { x: boundingRect.x, y: boundingRect.y, top, bottom, left, right, width: boundingRect.width, height: boundingRect.height };
 	};
-	requestAnimationFrame(() => scrollBy(0, 1));
+	scrollBy(0, 1);
 	requestAnimationFrame(() => scrollBy(0, -1));
 
 })();