diff options
author | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-17 10:51:43 +0200 |
---|---|---|
committer | Jaakko Keränen <jaakko.keranen@iki.fi> | 2021-12-17 10:51:43 +0200 |
commit | 417b69c781cd6ee4d5600994b318a2120dbc10ed (patch) | |
tree | cad03a020b2eda7da8e1acc4b38ce82fc10f1a72 /src | |
parent | 1c38deb8409ef9e3f1f4a089ef0e87dcb84bc81e (diff) |
macOS: Incorrect horizontal scroll direction
Diffstat (limited to 'src')
-rw-r--r-- | src/macos.m | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/macos.m b/src/macos.m index 2d082d28..e05222a0 100644 --- a/src/macos.m +++ b/src/macos.m | |||
@@ -442,7 +442,7 @@ static iBool processScrollWheelEvent_(NSEvent *event) { | |||
442 | if (isPerPixel) { | 442 | if (isPerPixel) { |
443 | setInertia_MouseWheelEvent(&e, isInertia); | 443 | setInertia_MouseWheelEvent(&e, isInertia); |
444 | setScrollFinished_MouseWheelEvent(&e, isEnded); | 444 | setScrollFinished_MouseWheelEvent(&e, isEnded); |
445 | e.x = -event.scrollingDeltaX * win->pixelRatio; | 445 | e.x = event.scrollingDeltaX * win->pixelRatio; |
446 | e.y = event.scrollingDeltaY * win->pixelRatio; | 446 | e.y = event.scrollingDeltaY * win->pixelRatio; |
447 | /* Only scroll on one axis at a time. */ | 447 | /* Only scroll on one axis at a time. */ |
448 | if (swipeDir_ == 0) { | 448 | if (swipeDir_ == 0) { |