mirror of
https://github.com/servo/servo.git
synced 2025-06-08 08:33:26 +00:00
Introduce a MouseButton enum.
This commit is contained in:
parent
85808c1cdd
commit
6b127a8df8
16 changed files with 57 additions and 20 deletions
|
@ -1205,10 +1205,10 @@ impl ScriptTask {
|
|||
self.handle_reflow_event(pipeline_id);
|
||||
}
|
||||
|
||||
ClickEvent(_button, point) => {
|
||||
ClickEvent(button, point) => {
|
||||
let page = get_page(&self.root_page(), pipeline_id);
|
||||
let document = page.document().root();
|
||||
document.r().handle_click_event(self.js_runtime.ptr, _button, point);
|
||||
document.r().handle_click_event(self.js_runtime.ptr, button, point);
|
||||
}
|
||||
|
||||
MouseDownEvent(..) => {}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue