Przeglądaj źródła

made first scroll synchronous

Gildas 7 lat temu
rodzic
commit
77375b469f
1 zmienionych plików z 1 dodań i 1 usunięć
  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));
 
 })();