summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorRobin Watts <robin.watts@artifex.com>2012-06-14 17:22:47 +0100
committerRobin Watts <robin.watts@artifex.com>2012-06-14 17:29:31 +0100
commitcd180f924225eadf5093fc075e09e7ffbf8aa546 (patch)
tree5411ad313783971f5c7eb089e0c41fed5b2dcc1d /apps
parentd329d93bee0de067ce691814932ee11e5ec27d87 (diff)
downloadmupdf-cd180f924225eadf5093fc075e09e7ffbf8aa546.tar.xz
After handling a mouseclick on a form field, stop processing.
This is important, otherwise we can get into an unexpected state and subsequent mouse moves appear as pans.
Diffstat (limited to 'apps')
-rw-r--r--apps/pdfapp.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/pdfapp.c b/apps/pdfapp.c
index 34a88598..de08a1ce 100644
--- a/apps/pdfapp.c
+++ b/apps/pdfapp.c
@@ -1037,6 +1037,7 @@ void pdfapp_onmouse(pdfapp_t *app, int x, int y, int btn, int modifiers, int sta
app->nowaitcursor = 1;
pdfapp_showpage(app, 1, 1, 1);
app->nowaitcursor = 0;
+ return;
}
}