fix scroll value and record viewport when loaded

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 41b9861fbf
commit 4446e27899
4 changed files with 41 additions and 16 deletions

View File

@@ -16,7 +16,10 @@ export type domContentLoadedEvent = {
export type loadedEvent = {
type: EventType.Load;
data: {};
data: {
width: number;
height: number;
};
};
export type fullSnapshotEvent = {