1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00

Revert change of scrollspeed in egui_web

https://github.com/emilk/egui/pull/702
This commit is contained in:
Emil Ernerfeldt
2021-09-07 20:47:53 +02:00
parent acb5501fe4
commit 6331bfed90
3 changed files with 2 additions and 5 deletions

View File

@@ -1049,7 +1049,7 @@ fn install_canvas_events(runner_ref: &AppRunnerRef) -> Result<(), JsValue> {
}
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
let points_per_scroll_line = 8.0; // Note that this is intentionally different from what we use in egui_glium / winit.
points_per_scroll_line
}
_ => 1.0,