diff --git a/apps/NwaifuAnime/src/app/components/reader/lazyscroll.directive.ts b/apps/NwaifuAnime/src/app/components/reader/lazyscroll.directive.ts deleted file mode 100644 index 09fb31c..0000000 --- a/apps/NwaifuAnime/src/app/components/reader/lazyscroll.directive.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Directive, ElementRef } from "@angular/core"; - -@Directive({ - selector: "[appLazyLoad]", - standalone: true, -}) -export class LazyLoadDirective { - constructor({ nativeElement }: ElementRef) { - const observer = new IntersectionObserver( - (entries) => { - console.log(entries); - }, - { - rootMargin: "1000px", - }, - ); - observer.observe(nativeElement); - } -} diff --git a/apps/NwaifuAnime/src/app/components/reader/reader.component.html b/apps/NwaifuAnime/src/app/components/reader/reader.component.html index 6ba6203..81dd75b 100644 --- a/apps/NwaifuAnime/src/app/components/reader/reader.component.html +++ b/apps/NwaifuAnime/src/app/components/reader/reader.component.html @@ -11,17 +11,21 @@

{{ currentChapterInfo?.number }}. {{ currentChapterInfo?.name || "Нет названия" }}

- @if (pages.length > 0 && cachedPages.get(currentPageIndex)) { + @if (pages.length > 0 && currentPage) {
@if (!isManhwa) { - + } @else { @for (page of manhwaPages; track page.id) { - + } }
-