We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 34a6609 commit 829a506Copy full SHA for 829a506
1 file changed
src/window.rs
@@ -61,12 +61,12 @@ impl App {
61
) -> winit::event::MouseScrollDelta {
62
match &mut delta {
63
winit::event::MouseScrollDelta::LineDelta(x, y) => {
64
- *x /= self.dpr as f32 * 8.0;
65
- *y /= self.dpr as f32 * 8.0;
+ *x /= self.dpr as f32;
+ *y /= self.dpr as f32;
66
}
67
winit::event::MouseScrollDelta::PixelDelta(p) => {
68
- p.x /= self.dpr * 8.0;
69
- p.y /= self.dpr * 8.0;
+ p.x /= self.dpr;
+ p.y /= self.dpr;
70
71
72
delta
0 commit comments