Skip to content

Commit

Permalink
Update input_state.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored May 23, 2024
1 parent c397b12 commit 13365ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/egui/src/input_state.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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];
Expand Down

0 comments on commit 13365ad

Please sign in to comment.