WebContent: Set WebDriver scroll behavior to "instant"

https://github.com/w3c/webdriver/commit/bba8cb7
This commit is contained in:
Timothy Flynn 2025-09-05 09:54:08 -04:00 committed by Tim Flynn
parent 7811c2e71b
commit 4b68fab14c

View File

@ -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;