1 diff -crB mupdf-0.9-original/apps/pdfapp.c mupdf-0.9-patched/apps/pdfapp.c
2 *** mupdf-0.9-original/apps/pdfapp.c 2011-09-05 13:55:39.000000000 +0200
3 --- mupdf-0.9-patched/apps/pdfapp.c 2011-09-11 02:10:32.528932823 +0200
10 + if (app->pany + app->image->h <= app->winh)
12 app->pany -= app->image->h / 10;
13 pdfapp_showpage(app, 0, 0, 1);
19 app->pany += app->image->h / 10;
20 pdfapp_showpage(app, 0, 0, 1);
29 panto = PAN_TO_BOTTOM;
30 if (app->numberlen > 0)
31 app->pageno -= atoi(app->number);
40 if (app->numberlen > 0)
41 app->pageno += atoi(app->number);
48 if (app->numberlen > 0)
49 app->pageno -= atoi(app->number);
56 if (app->numberlen > 0)
57 app->pageno -= atoi(app->number);
65 if (app->numberlen > 0)
66 app->pageno += atoi(app->number);
73 if (app->numberlen > 0)
74 app->pageno += atoi(app->number);
78 int isx = (modifiers & (1<<0));
79 int xstep = isx ? 20 * dir : 0;
80 int ystep = !isx ? 20 * dir : 0;
81 ! pdfapp_panview(app, app->panx + xstep, app->pany + ystep);
86 int isx = (modifiers & (1<<0));
87 int xstep = isx ? 20 * dir : 0;
88 int ystep = !isx ? 20 * dir : 0;
90 ! if (!isx && dir < 0 && app->pany + app->image->h <= app->winh)
91 ! pdfapp_onkey(app, 'j');
92 ! else if (!isx && dir > 0 && app->pany >= 0)
93 ! pdfapp_onkey(app, 'k');
95 ! pdfapp_panview(app, app->panx + xstep, app->pany + ystep);