fix: deep link to last asset (#23920)

This commit is contained in:
Min Idzelis
2025-11-17 15:12:07 -05:00
committed by GitHub
parent 15e00f82f0
commit 69880ee165
3 changed files with 19 additions and 6 deletions

View File

@@ -140,7 +140,7 @@ export class DayGroup {
}
layout(options: CommonLayoutOptions, noDefer: boolean) {
if (!noDefer && !this.monthGroup.intersecting) {
if (!noDefer && !this.monthGroup.intersecting && !this.monthGroup.timelineManager.isScrollingOnLoad) {
this.#deferredLayout = true;
return;
}

View File

@@ -61,6 +61,7 @@ export class TimelineManager extends VirtualScrollManager {
});
isInitialized = $state(false);
isScrollingOnLoad = false;
months: MonthGroup[] = $state([]);
albumAssets: Set<string> = new SvelteSet();
scrubberMonths: ScrubberMonth[] = $state([]);