add mouse movement observer

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent d2175eae87
commit 61312a0ad0
4 changed files with 117 additions and 11 deletions

View File

@@ -60,6 +60,16 @@ function record(options: recordOptions) {
},
}),
),
mousemoveCb: positions =>
emit(
wrapEvent({
type: EventType.IncrementalSnapshot,
data: {
source: IncrementalSource.MouseMove,
positions,
},
}),
),
});
});
} catch (error) {