close #84 set mousemoveData's source by event source

This commit is contained in:
Yanzhen Yu
2019-08-04 15:06:06 +08:00
parent 7f32fbdd05
commit 56c025fde3
4 changed files with 30 additions and 19 deletions

View File

@@ -132,12 +132,12 @@ function record(options: recordOptions = {}): listenerHandler | undefined {
},
}),
),
mousemoveCb: positions =>
mousemoveCb: (positions, source) =>
wrappedEmit(
wrapEvent({
type: EventType.IncrementalSnapshot,
data: {
source: IncrementalSource.MouseMove,
source,
positions,
},
}),