diff options
author | Cedric Sodhi <manday@gmx.net> | 2011-05-23 16:01:02 +0200 |
---|---|---|
committer | Tor Andersson <tor.andersson@artifex.com> | 2011-05-26 20:28:39 +0200 |
commit | 89bf9896bd9d05500ac6494452a1b9d9cf8a67cb (patch) | |
tree | d28db9681b91c816360e2e1667869b098bfc8d4b /apps/pdfapp.h | |
parent | e0c00ccad1e67b0706e4337ad33e711ea069f58e (diff) | |
download | mupdf-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.h | 7 |
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 */ |