Explorar o código

made first scroll synchronous

Gildas %!s(int64=7) %!d(string=hai) anos
pai
achega
77375b469f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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));
 
 })();