summaryrefslogtreecommitdiff
path: root/apps/pdfapp.h
diff options
context:
space:
mode:
authorCedric Sodhi <manday@gmx.net>2011-05-23 16:01:02 +0200
committerTor Andersson <tor.andersson@artifex.com>2011-05-26 20:28:39 +0200
commit89bf9896bd9d05500ac6494452a1b9d9cf8a67cb (patch)
treed28db9681b91c816360e2e1667869b098bfc8d4b /apps/pdfapp.h
parente0c00ccad1e67b0706e4337ad33e711ea069f58e (diff)
downloadmupdf-89bf9896bd9d05500ac6494452a1b9d9cf8a67cb.tar.xz
Flip pages when panning beyond threshhold.
Added BEYOND_TRESHHOLD for pdfapp and code which flips to next/previous page if one pans beyond the page end plus that threshhold.
Diffstat (limited to 'apps/pdfapp.h')
-rw-r--r--apps/pdfapp.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/apps/pdfapp.h b/apps/pdfapp.h
index feb0a8ce..f884f05a 100644
--- a/apps/pdfapp.h
+++ b/apps/pdfapp.h
@@ -69,6 +69,13 @@ struct pdfapp_s
int iscopying;
int selx, sely;
+ /* TODO - While sely keeps track of the relative change in
+ * cursor position between two ticks/events, beyondy shall keep
+ * track of the relative change in cursor position from the
+ * point where the user hits a scrolling limit. This is ugly.
+ * Used in pdfapp.c:pdfapp_onmouse.
+ */
+ int beyondy;
fz_bbox selr;
/* search state */