diff --git a/apps/NwaifuAnime/src/app/components/reader/reader.component.ts b/apps/NwaifuAnime/src/app/components/reader/reader.component.ts index 69a36c4..3a49f20 100644 --- a/apps/NwaifuAnime/src/app/components/reader/reader.component.ts +++ b/apps/NwaifuAnime/src/app/components/reader/reader.component.ts @@ -166,7 +166,9 @@ export class ReaderComponent implements OnInit, OnDestroy { private clearCache(index: number) { for (let i = 0; i <= index; i++) { + const imgUrl = this.cachedPages.get(i)!.imageUrl; this.cachedPages.get(i)!.imageUrl = ""; + URL.revokeObjectURL(imgUrl); } } diff --git a/apps/NwaifuAnime/src/app/components/scale-image/scale-image.component.ts b/apps/NwaifuAnime/src/app/components/scale-image/scale-image.component.ts index bde9152..5bbde19 100644 --- a/apps/NwaifuAnime/src/app/components/scale-image/scale-image.component.ts +++ b/apps/NwaifuAnime/src/app/components/scale-image/scale-image.component.ts @@ -34,7 +34,7 @@ export class ScaleImageComponent implements AfterViewInit, OnDestroy { ([entry]) => entry.isIntersecting && this.view.emit(), { root: this.hostScrollable ? this.host.nativeElement : null, - rootMargin: "700px", + rootMargin: "100px", }, ); if (this.containerRef) this.observer.observe(this.containerRef.nativeElement);