Fix unscaled scrolling when using an imprecise mouse wheel
This commit is contained in:
parent
3c53fcdb43
commit
8e6c5dbc3b
8 changed files with 83 additions and 28 deletions
|
@ -97,7 +97,7 @@ impl MouseButton {
|
|||
}
|
||||
|
||||
fn from_scroll(e: &ScrollWheelEvent) -> Self {
|
||||
if e.delta.y() > 0. {
|
||||
if e.delta.raw().y() > 0. {
|
||||
MouseButton::ScrollUp
|
||||
} else {
|
||||
MouseButton::ScrollDown
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue