Procházet zdrojové kódy

made first scroll synchronous

Gildas před 7 roky
rodič
revize
77375b469f
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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));
 
 })();