Remove duplication in dispatch_pending_point_input_events (#37426)

Follow up to:
https://github.com/servo/servo/pull/37285#pullrequestreview-2916829212,
this PR removes duplicate code.
cc: @xiaochengh

---------

Signed-off-by: batu_hoang <longvatrong111@gmail.com>
This commit is contained in:
batu_hoang 2025-06-15 13:32:13 +08:00 committed by GitHub
parent 5d42ab05fb
commit 810c0e6891
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 46 additions and 50 deletions

View file

@ -658,6 +658,7 @@ impl IOCompositor {
webview_renderer.dispatch_point_input_event(
InputEvent::MouseButton(MouseButtonEvent::new(action, button, point))
.with_webdriver_message_id(message_id),
false,
);
},
@ -671,6 +672,7 @@ impl IOCompositor {
webview_renderer.dispatch_point_input_event(
InputEvent::MouseMove(MouseMoveEvent::new(point))
.with_webdriver_message_id(message_id),
false,
);
},
@ -699,6 +701,7 @@ impl IOCompositor {
webview_renderer.dispatch_point_input_event(
InputEvent::Wheel(WheelEvent::new(delta, point))
.with_webdriver_message_id(message_id),
false,
);
webview_renderer.on_webdriver_wheel_action(scroll_delta, point);
},