mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
Rename MouseWindowEvent variants.
This commit is contained in:
parent
65ee8166bd
commit
be683a0888
7 changed files with 25 additions and 28 deletions
|
@ -318,11 +318,11 @@ impl CompositorLayer for Layer<CompositorData> {
|
|||
cursor: TypedPoint2D<LayerPixel, f32>) {
|
||||
let event_point = cursor.to_untyped();
|
||||
let message = match event {
|
||||
MouseWindowEvent::MouseWindowClickEvent(button, _) =>
|
||||
MouseWindowEvent::Click(button, _) =>
|
||||
ClickEvent(button, event_point),
|
||||
MouseWindowEvent::MouseWindowMouseDownEvent(button, _) =>
|
||||
MouseWindowEvent::MouseDown(button, _) =>
|
||||
MouseDownEvent(button, event_point),
|
||||
MouseWindowEvent::MouseWindowMouseUpEvent(button, _) =>
|
||||
MouseWindowEvent::MouseUp(button, _) =>
|
||||
MouseUpEvent(button, event_point),
|
||||
};
|
||||
let pipeline = &self.extra_data.borrow().pipeline;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue