Heavily improved scrolling

This commit is contained in:
2018-03-14 20:35:00 +01:00
parent 2fd56207d2
commit ab7f1a0474
2 changed files with 20 additions and 4 deletions

View File

@ -609,6 +609,14 @@ export class AnimeNotifier {
for(let i = 0; i < collection.length; i++) {
let element = collection.item(i) as HTMLElement
// Skip already mounted elements.
// This helps a lot when dealing with infinite scrolling
// where the first elements are already mounted.
if(element.classList.contains("mounted")) {
continue
}
let type = element.dataset.mountableType || "general"
if(mountableTypes.has(type)) {