Skip to content

Commit

Permalink
Fix fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Urcra committed Nov 16, 2024
1 parent 27cc7ba commit 0029466
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion walkers/src/map.rs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ impl Map<'_, '_, '_> {
let mut zoom_delta = ui.input(|input| input.zoom_delta()) as f64;

if !self.zoom_with_ctrl && zoom_delta == 1.0 {
// We only use the raw scroll values, if we are zooming without ctrl,
// We only use the raw scroll values, if we are zooming without ctrl,
// and zoom_delta is not already over/under 1.0 (eg. a ctrl + scroll event or a pinch zoom)
// These values seem to corrospond to the same values as one would get in `zoom_delta()`
zoom_delta = ui.input(|input| (1.0 + input.smooth_scroll_delta.y / 200.0)) as f64
Expand Down

0 comments on commit 0029466

Please sign in to comment.