Skip to content

Commit 79add1f

Browse files
committed
More accurately describe movement as a Delta
1 parent 282e6ec commit 79add1f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lighthouse-protocol/src/input/mouse_event.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
use serde::{Deserialize, Serialize};
22

3-
use crate::Pos;
3+
use crate::{Delta, Pos};
44

55
use super::{EventSource, MouseButton};
66

@@ -19,5 +19,5 @@ pub struct MouseEvent {
1919
/// The mouse position on the lighthouse grid.
2020
pub pos: Pos<f64>,
2121
/// The mouse movement on the lighthouse grid.
22-
pub movement: Pos<f64>,
22+
pub movement: Delta<f64>,
2323
}

0 commit comments

Comments
 (0)