Skip to content

Commit 3ab78e3

Browse files
committed
Bug 1986238 - [remote] Revert scrollIntoView behavior to "instant". r=webdriver-reviewers,Sasha
Differential Revision: https://phabricator.services.mozilla.com/D263782
1 parent 81cbee1 commit 3ab78e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

remote/shared/DOM.sys.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1035,14 +1035,14 @@ dom.getPointerInteractablePaintTree = function (el) {
10351035
dom.isKeyboardInteractable = () => true;
10361036

10371037
/**
1038-
* Attempts to scroll into view |el|.
1038+
* Attempts to scroll `el` into view.
10391039
*
10401040
* @param {DOMElement} el
10411041
* Element to scroll into view.
10421042
*/
10431043
dom.scrollIntoView = function (el) {
10441044
if (el.scrollIntoView) {
1045-
el.scrollIntoView({ block: "end", inline: "nearest" });
1045+
el.scrollIntoView({ behavior: "instant", block: "end", inline: "nearest" });
10461046
}
10471047
};
10481048

0 commit comments

Comments
 (0)