diff options
author | Alexander Weiss <ik@alexanderweiss.nl> | 2018-04-27 20:28:59 +0200 |
---|---|---|
committer | Michael Lutz <michi@icosahedron.de> | 2018-05-24 21:31:37 +0200 |
commit | 6df7ced343deb150323f709822b5fde1e8fe1d97 (patch) | |
tree | f93e0b85cf192a12fd71570b8447056f77f4dd7e | |
parent | 17257b9620a78dc115fadbcfa9a891e5392f09ab (diff) | |
download | openttd-6df7ced343deb150323f709822b5fde1e8fe1d97.tar.xz |
Change: [OSX] Reversed pinch to zoom behaviour.
Made pinch out zoom in and pinch in zoom out, as virtually all macOS
applications do.
-rw-r--r-- | src/video/cocoa/event.mm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/video/cocoa/event.mm b/src/video/cocoa/event.mm index f4a7c2b42..30b6563b6 100644 --- a/src/video/cocoa/event.mm +++ b/src/video/cocoa/event.mm @@ -587,12 +587,12 @@ static bool QZ_PollEvent() while (_current_magnification >= 1.0f) { _current_magnification -= 1.0f; - _cursor.wheel++; + _cursor.wheel--; HandleMouseEvents(); } while (_current_magnification <= -1.0f) { _current_magnification += 1.0f; - _cursor.wheel--; + _cursor.wheel++; HandleMouseEvents(); } break; |