diff --git a/src/replay/index.ts b/src/replay/index.ts index de2db2d3..26b6c892 100644 --- a/src/replay/index.ts +++ b/src/replay/index.ts @@ -380,7 +380,9 @@ export class Replayer { void this.mouse.offsetWidth; this.mouse.classList.add('active'); } else if (d.type === MouseInteractions.Focus) { - target.focus(); + target.focus({ + preventScroll: true, + }); } else { target.dispatchEvent(event); }