Skip to main content

apply_wheel_speed

Function apply_wheel_speed 

Source
pub fn apply_wheel_speed(ctx: &Context, speed: f32)
Expand description

Makes a wheel’s lines worth speed times egui’s own points a line, in scroll areas and in wheel_inputs. What a trackpad sends is in points already, and stays as it is. A speed that is not a positive number counts as 1.