fix: back/forward navigation won't reset scroll in timeline (#22838)

* fix: back/forward navigation won't reset scroll in timeline

Fixes a bug where navigating to/from the asser-viewer from timeline causes the scroll position to be reset.

* Fix back after assetviewer next/prev navigation

* Bug fix from review

* review comments
This commit is contained in:
Min Idzelis 2025-10-27 09:56:03 -04:00 committed by GitHub
parent 382481735a
commit c666dc6c67
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 117 additions and 64 deletions

View file

@ -107,7 +107,7 @@ export class StorageRepository {
const file = await fs.open(filepath);
try {
const { buffer } = await file.read(options);
return buffer;
return buffer as Buffer;
} finally {
await file.close();
}