diff options
author | Ms2ger <ms2ger@gmail.com> | 2015-04-02 17:52:12 +0200 |
---|---|---|
committer | Ms2ger <ms2ger@gmail.com> | 2015-04-03 01:24:33 +0200 |
commit | 6b127a8df8c893f9a8175bd63a04bb0c068c24c3 (patch) | |
tree | 613c1e5aae28867b7c133cb69d47a838c5214565 /components/script/script_task.rs | |
parent | 85808c1cdd39a3afdc9815247ceb6f0fb7e9a31b (diff) | |
download | servo-6b127a8df8c893f9a8175bd63a04bb0c068c24c3.tar.gz servo-6b127a8df8c893f9a8175bd63a04bb0c068c24c3.zip |
Introduce a MouseButton enum.
Diffstat (limited to 'components/script/script_task.rs')
-rw-r--r-- | components/script/script_task.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/script_task.rs b/components/script/script_task.rs index 593bd40bdf0..ff69fabe760 100644 --- a/components/script/script_task.rs +++ b/components/script/script_task.rs @@ -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(..) => {} |