From 53de98a0684f94c08e1cd38fbcc425e422ce38b9 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Tue, 12 Dec 2023 14:32:49 -0800 Subject: [PATCH] Fix build with `debug` feature --- src/input/mod.rs | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/input/mod.rs b/src/input/mod.rs index 3c0b44d2..8d847c5b 100644 --- a/src/input/mod.rs +++ b/src/input/mod.rs @@ -985,13 +985,19 @@ impl State { if self.common.egui.state.wants_pointer() { self.common.egui.state.handle_pointer_axis( event - .amount_discrete(Axis::Horizontal) - .or_else(|| event.amount(Axis::Horizontal).map(|x| x * 3.0)) - .unwrap_or(0.0), + .amount_v120(Axis::Horizontal) + .or_else(|| { + event.amount(Axis::Horizontal).map(|x| x * 3.0 * 120.0) + }) + .unwrap_or(0.0) + / 120.0, event - .amount_discrete(Axis::Vertical) - .or_else(|| event.amount(Axis::Vertical).map(|x| x * 3.0)) - .unwrap_or(0.0), + .amount_v120(Axis::Vertical) + .or_else(|| { + event.amount(Axis::Vertical).map(|x| x * 3.0 * 120.0) + }) + .unwrap_or(0.0) + / 120.0, ); return; }