add mouse movement observer

This commit is contained in:
Yanzhen Yu
2018-10-08 17:46:15 +08:00
parent 427acff3d6
commit a33b24a676
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) {