summaryrefslogtreecommitdiff
path: root/src/video/cocoa
diff options
context:
space:
mode:
authorAlexander Weiss <ik@alexanderweiss.nl>2018-04-27 20:28:59 +0200
committerMichael Lutz <michi@icosahedron.de>2018-05-24 21:31:37 +0200
commit6df7ced343deb150323f709822b5fde1e8fe1d97 (patch)
treef93e0b85cf192a12fd71570b8447056f77f4dd7e /src/video/cocoa
parent17257b9620a78dc115fadbcfa9a891e5392f09ab (diff)
downloadopenttd-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.
Diffstat (limited to 'src/video/cocoa')
-rw-r--r--src/video/cocoa/event.mm4
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;