Quellcode durchsuchen

made first scroll synchronous

Gildas vor 7 Jahren
Ursprung
Commit
77375b469f
1 geänderte Dateien mit 1 neuen und 1 gelöschten Zeilen
  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));
 
 })();