mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Implement pointerDown and pointerUp webdriver actions
This commit is contained in:
parent
6a637ceffb
commit
225cecf661
5 changed files with 160 additions and 28 deletions
|
@ -518,6 +518,23 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
|
|||
}
|
||||
},
|
||||
|
||||
(
|
||||
Msg::WebDriverMouseButtonEvent(mouse_event_type, mouse_button, x, y),
|
||||
ShutdownState::NotShuttingDown,
|
||||
) => {
|
||||
self.on_mouse_window_event_class(match mouse_event_type {
|
||||
MouseEventType::Click => {
|
||||
MouseWindowEvent::Click(mouse_button, DevicePoint::new(x, y))
|
||||
},
|
||||
MouseEventType::MouseDown => {
|
||||
MouseWindowEvent::MouseDown(mouse_button, DevicePoint::new(x, y))
|
||||
},
|
||||
MouseEventType::MouseUp => {
|
||||
MouseWindowEvent::MouseUp(mouse_button, DevicePoint::new(x, y))
|
||||
},
|
||||
});
|
||||
},
|
||||
|
||||
(Msg::PendingPaintMetric(pipeline_id, epoch), _) => {
|
||||
self.pending_paint_metrics.insert(pipeline_id, epoch);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue