mirror of https://github.com/OpenTTD/OpenTTD
Change: [OSX] Reversed pinch to zoom behaviour.
Made pinch out zoom in and pinch in zoom out, as virtually all macOS applications do.pull/6779/merge
parent
17257b9620
commit
6df7ced343
|
@ -587,12 +587,12 @@ static bool QZ_PollEvent()
|
||||||
|
|
||||||
while (_current_magnification >= 1.0f) {
|
while (_current_magnification >= 1.0f) {
|
||||||
_current_magnification -= 1.0f;
|
_current_magnification -= 1.0f;
|
||||||
_cursor.wheel++;
|
_cursor.wheel--;
|
||||||
HandleMouseEvents();
|
HandleMouseEvents();
|
||||||
}
|
}
|
||||||
while (_current_magnification <= -1.0f) {
|
while (_current_magnification <= -1.0f) {
|
||||||
_current_magnification += 1.0f;
|
_current_magnification += 1.0f;
|
||||||
_cursor.wheel--;
|
_cursor.wheel++;
|
||||||
HandleMouseEvents();
|
HandleMouseEvents();
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
Loading…
Reference in New Issue