prevent scroll when dispatch focus
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user