This commit is contained in:
Ferdinand Schober
2024-07-09 20:39:08 +02:00
parent 289c21e000
commit b14dcb6f49
2 changed files with 3 additions and 7 deletions

View File

@@ -145,11 +145,7 @@ fn to_mouse_event(wparam: WPARAM, lparam: LPARAM) -> Option<PointerEvent> {
let (ex, ey) = ENTRY_POINT;
let (dx, dy) = (x - ex, y - ey);
let (dx, dy) = (dx as f64, dy as f64);
Some(PointerEvent::Motion {
time: 0,
dx: dx as f64,
dy: dy as f64,
})
Some(PointerEvent::Motion { time: 0, dx, dy })
},
WPARAM(p) if p == WM_MOUSEWHEEL as usize => Some(PointerEvent::AxisDiscrete120 {
axis: 0,