summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2016-06-18 15:59:38 +0100
committerRobin Watts <robin.watts@artifex.com>2016-06-20 12:32:55 +0100
commite872f42282e48def480db48745d16523e95822ec (patch)
tree1be012afdecfe908d505292a529dcc859f59e16f /platform/x11
parentcc4c0e6c87bbefa9d0b5786cebd2f7362e307acd (diff)
downloadmupdf-e872f42282e48def480db48745d16523e95822ec.tar.xz
Bug 696835: Reverse zoom in/zoom out mouse controls.
We had these reversed. Doesn't matter too much with a mouse, but matters a lot more on a touch screen when the same signals are used to do pinch zoom.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/win_main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/win_main.c b/platform/x11/win_main.c
index c686c240..0d7e3f66 100644
--- a/platform/x11/win_main.c
+++ b/platform/x11/win_main.c
@@ -1116,7 +1116,7 @@ viewproc(HWND hwnd, UINT message, WPARAM wParam, LPARAM lParam)
/* Mouse wheel */
case WM_MOUSEWHEEL:
- if ((signed short)HIWORD(wParam) > 0)
+ if ((signed short)HIWORD(wParam) <= 0)
{
handlemouse(oldx, oldy, 4, 1);
handlemouse(oldx, oldy, 4, -1);