1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Increase scroll-speed on glium from 8 to 50 points per scroll tick

Closes https://github.com/emilk/egui/issues/461
Closes https://github.com/emilk/egui/pull/702
This commit is contained in:
Emil Ernerfeldt
2021-09-07 19:45:13 +02:00
parent aef23753ca
commit 249876523d
5 changed files with 14 additions and 10 deletions

View File

@@ -1048,7 +1048,8 @@ 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 => {
8.0 // magic value!
let points_per_scroll_line = 50.0; // Scroll speed decided by consensus: https://github.com/emilk/egui/issues/461
points_per_scroll_line
}
_ => 1.0,
};