Add userTriggered (#495)
* add `userTriggered` * update snapshots to add userTriggered * add `userTriggered` * update snapshots to add userTriggered * update snapshot to include userTrigger * only set userTriggered on `userTriggeredOnInput: true` * What is user triggered? * correct snapshot * add second radio to demonstrate userTriggered
This commit is contained in:
@@ -115,6 +115,7 @@ export class Replayer {
|
||||
triggerFocus: true,
|
||||
UNSAFE_replayCanvas: false,
|
||||
pauseAnimation: true,
|
||||
userTriggeredOnInput: true,
|
||||
mouseTail: defaultMouseTailConfig,
|
||||
};
|
||||
this.config = Object.assign({}, defaultConfig, config);
|
||||
@@ -501,10 +502,7 @@ export class Replayer {
|
||||
|
||||
// events are kept sorted by timestamp, check if this is the last event
|
||||
let last_index = this.service.state.context.events.length - 1;
|
||||
if (
|
||||
event ===
|
||||
this.service.state.context.events[last_index]
|
||||
) {
|
||||
if (event === this.service.state.context.events[last_index]) {
|
||||
const finish = () => {
|
||||
if (last_index < this.service.state.context.events.length - 1) {
|
||||
// more events have been added since the setTimeout
|
||||
|
||||
Reference in New Issue
Block a user