summaryrefslogtreecommitdiff
path: root/platform/x11
diff options
context:
space:
mode:
authorTor Andersson <tor.andersson@artifex.com>2018-11-06 15:04:48 +0100
committerTor Andersson <tor.andersson@artifex.com>2018-11-07 14:02:18 +0100
commit95cc62bdac939c2b65af0323362cd1ac50084e8c (patch)
tree8308b0899f8ea76cfa8cbeb611b28a16d3b76477 /platform/x11
parent60b13ad3f7a1b597152d079b336fbbed75942998 (diff)
downloadmupdf-95cc62bdac939c2b65af0323362cd1ac50084e8c.tar.xz
Fix 700131: Reverse ctl+wheel zoom direction.
Behave like Firefox, Gimp, etc.
Diffstat (limited to 'platform/x11')
-rw-r--r--platform/x11/pdfapp.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/platform/x11/pdfapp.c b/platform/x11/pdfapp.c
index c647a4c0..ea1d39f5 100644
--- a/platform/x11/pdfapp.c
+++ b/platform/x11/pdfapp.c
@@ -1538,7 +1538,7 @@ static void handlescroll(pdfapp_t *app, int modifiers, int dir)
if (modifiers & (1<<2))
{
/* zoom in/out if ctrl is pressed */
- if (dir < 0)
+ if (dir > 0)
app->resolution = zoom_in(app->resolution);
else
app->resolution = zoom_out(app->resolution);