mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
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:
parent
152467bc67
commit
96ef92b9ac
5 changed files with 88 additions and 20 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue