From 13365ad34df22ccb3945b9282de1e4eb72b10396 Mon Sep 17 00:00:00 2001 From: rustbasic <127506429+rustbasic@users.noreply.github.com> Date: Thu, 23 May 2024 23:21:59 +0900 Subject: [PATCH] Update input_state.rs --- crates/egui/src/input_state.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/egui/src/input_state.rs b/crates/egui/src/input_state.rs index 4ad29c00e6a..17ae70ae274 100644 --- a/crates/egui/src/input_state.rs +++ b/crates/egui/src/input_state.rs @@ -351,7 +351,7 @@ impl InputState { if self.unprocessed_scroll_delta != Vec2::ZERO { let dt = self.stable_dt.at_most(0.1); let t = crate::emath::exponential_smooth_factor(0.90, 0.1, dt); - + for d in 0..2 { if self.unprocessed_scroll_delta[d].abs() < 1.0 { self.smooth_scroll_delta[d] += self.unprocessed_scroll_delta[d];