refactor: Refactor media loading manager for improved robustness (#2464)

This commit is contained in:
Dermot Duffy
2026-06-30 17:45:12 -07:00
committed by dermotduffy
parent 47bcce93d3
commit bc366626f1
51 changed files with 1897 additions and 1128 deletions
+3 -3
View File
@@ -344,9 +344,9 @@ export class ViewManager implements ViewManagerInterface {
this._view = view;
this._epoch = this._createEpoch(oldView);
if (this.hasMajorMediaChange(oldView)) {
this._api.getMediaLoadedInfoManager().clear();
}
this._api
.getMediaLoadedInfoManager()
.setSelected(view ? getViewTargetID(view) : null);
if (oldView?.view !== view?.view) {
this._api.getCardElementManager().scrollReset();