Implement scroll event (#36687)

Reimplementation of https://github.com/servo/servo/pull/35105.

test: `tests/wpt/tests/pointerevents/{pointerevent_hit_test_scroll,
pointerevent_hit_test_scroll_visible_decendant}.html` (after
https://github.com/servo/servo/pull/37461)

Signed-off-by: PotatoCP <kenzieradityatirtarahardja.18@gmail.com>
Co-authored-by: PotatoCP <kenzieradityatirtarahardja.18@gmail.com>
Co-authored-by: Asun0204 <asun0204@163.com>
This commit is contained in:
Kenzie Raditya Tirtarahardja 2025-06-18 14:05:45 +08:00 committed by GitHub
parent 152467bc67
commit 96ef92b9ac
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 88 additions and 20 deletions

View file

@ -1167,6 +1167,9 @@ impl ScriptThread {
InputEvent::EditingAction(editing_action_event) => {
document.handle_editing_action(editing_action_event, can_gc);
},
InputEvent::Scroll(scroll_event) => {
document.handle_scroll_event(scroll_event, can_gc);
},
}
}
ScriptThread::set_user_interacting(false);