mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-05 06:32:30 +02:00
LibWeb: Fire right scroll event type in ::run_the_scroll_steps()
This commit is contained in:
committed by
Alexander Kalenik
parent
919cdb5143
commit
14b118c8ea
Notes:
github-actions[bot]
2026-02-13 21:45:43 +00:00
Author: https://github.com/gmta Commit: https://github.com/LadybirdBrowser/ladybird/commit/14b118c8ea7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/7940 Reviewed-by: https://github.com/kalenikaliaksandr ✅
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user