From 4b68fab14c17af9b3c36e85c60b7b7a768134544 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Fri, 5 Sep 2025 09:54:08 -0400 Subject: [PATCH] WebContent: Set WebDriver scroll behavior to "instant" https://github.com/w3c/webdriver/commit/bba8cb7 --- Services/WebContent/WebDriverConnection.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Services/WebContent/WebDriverConnection.cpp b/Services/WebContent/WebDriverConnection.cpp index 29c14c436c8..100611c58e7 100644 --- a/Services/WebContent/WebDriverConnection.cpp +++ b/Services/WebContent/WebDriverConnection.cpp @@ -122,6 +122,9 @@ static void scroll_element_into_view(Web::DOM::Element& element) { // 1. Let options be the following ScrollIntoViewOptions: Web::DOM::ScrollIntoViewOptions options {}; + // "behavior" + // "instant" + options.behavior = Web::Bindings::ScrollBehavior::Instant; // Logical scroll position "block" // "end" options.block = Web::Bindings::ScrollLogicalPosition::End;