mirror of
https://github.com/servo/servo.git
synced 2025-08-11 00:15:32 +01:00
[webdriver] Add synchronization for wheel action (#37260)
Implement action synchronization for wheel event. Previously only done for pointer here https://github.com/servo/servo/pull/36932. Testing: `tests/wpt/meta/webdriver/tests/classic/perform_actions/wheel.py` --------- Signed-off-by: PotatoCP <kenzieradityatirtarahardja18@gmail.com>
This commit is contained in:
parent
5114e24db1
commit
15eadb56a4
8 changed files with 89 additions and 34 deletions
|
@ -4899,10 +4899,20 @@ where
|
|||
webview_id, x, y, msg_id,
|
||||
));
|
||||
},
|
||||
WebDriverCommandMsg::WheelScrollAction(webview, x, y, delta_x, delta_y) => {
|
||||
WebDriverCommandMsg::WheelScrollAction(
|
||||
webview_id,
|
||||
x,
|
||||
y,
|
||||
delta_x,
|
||||
delta_y,
|
||||
msg_id,
|
||||
response_sender,
|
||||
) => {
|
||||
self.webdriver.input_command_response_sender = Some(response_sender);
|
||||
|
||||
self.compositor_proxy
|
||||
.send(CompositorMsg::WebDriverWheelScrollEvent(
|
||||
webview, x, y, delta_x, delta_y,
|
||||
webview_id, x, y, delta_x, delta_y, msg_id,
|
||||
));
|
||||
},
|
||||
WebDriverCommandMsg::TakeScreenshot(webview_id, rect, response_sender) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue