LibWeb: Fire right scroll event type in ::run_the_scroll_steps()

This commit is contained in:
Jelle Raaijmakers
2026-02-13 20:54:40 +01:00
committed by Alexander Kalenik
parent 919cdb5143
commit 14b118c8ea
Notes: github-actions[bot] 2026-02-13 21:45:43 +00:00

View File

@@ -3659,7 +3659,7 @@ void Document::run_the_scroll_steps()
// FIXME: 3. Otherwise, if type is "scrollsnapchanging", then:
// 4. Otherwise, fire an event named type at target.
else {
auto event = DOM::Event::create(realm(), HTML::EventNames::scroll);
auto event = DOM::Event::create(realm(), type);
target->dispatch_event(event);
}
}