prevent scroll when dispatch focus
This commit is contained in:
@@ -380,7 +380,9 @@ export class Replayer {
|
|||||||
void this.mouse.offsetWidth;
|
void this.mouse.offsetWidth;
|
||||||
this.mouse.classList.add('active');
|
this.mouse.classList.add('active');
|
||||||
} else if (d.type === MouseInteractions.Focus) {
|
} else if (d.type === MouseInteractions.Focus) {
|
||||||
target.focus();
|
target.focus({
|
||||||
|
preventScroll: true,
|
||||||
|
});
|
||||||
} else {
|
} else {
|
||||||
target.dispatchEvent(event);
|
target.dispatchEvent(event);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user