mirror of
https://github.com/storytold/egui.git
synced 2026-11-25 03:53:35 +01:00
Clippy fix
This commit is contained in:
1 parent
d23982d83e
commit
cbafd10ee4
1 file changed
+1
@@ -1048,6 +1048,7 @@ fn install_canvas_events(runner_ref: &AppRunnerRef) -> Result<(), JsValue> {
|
||||
canvas_size_in_points(runner_ref.0.lock().canvas_id()).y
|
||||
}
|
||||
web_sys::WheelEvent::DOM_DELTA_LINE => {
|
||||
#[allow(clippy::let_and_return)]
|
||||
let points_per_scroll_line = 50.0; // Scroll speed decided by consensus: https://github.com/emilk/egui/issues/461
|
||||
points_per_scroll_line
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user