mirror of
https://github.com/emilk/egui.git
synced 2026-08-30 13:20:05 -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:
@@ -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,
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user