diff -r 19358c313ebb -r 65c971417780 rust/hwrunner/src/main.rs --- a/rust/hwrunner/src/main.rs Fri Mar 22 21:09:17 2019 +0300 +++ b/rust/hwrunner/src/main.rs Fri Mar 22 21:44:06 2019 +0300 @@ -64,13 +64,10 @@ } WindowEvent::MouseInput { button, state, .. } => { if let MouseButton::Right = button { - if let ElementState::Pressed = state { - dragging = true; - } else { - dragging = false; - } + dragging = state == ElementState::Pressed; } } + WindowEvent::MouseWheel { delta, .. } => { let zoom_change = match delta { MouseScrollDelta::LineDelta(x, y) => y as f32 * 0.1f32,