mirror of
https://github.com/eliasstepanik/imgui-rs.git
synced 2026-01-11 21:48:36 +00:00
Update mouse wheel event
This commit is contained in:
parent
2ce985996a
commit
09a83bac6c
@ -140,8 +140,7 @@ impl SdlPlatform {
|
||||
|
||||
match *event {
|
||||
Event::MouseWheel { x, y, .. } => {
|
||||
io.mouse_wheel = y as f32;
|
||||
io.mouse_wheel_h = x as f32;
|
||||
io.add_mouse_wheel_event([x as f32, y as f32]);
|
||||
true
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user