From: Wouter Bolsterlee Date: Thu, 19 Oct 2006 16:06:17 +0000 (+0000) Subject: Page Up/Down should do page jumps in "Best fit" mode. If a user has X-Git-Tag: EVINCE_0_7_0~100 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=51bb08a308a67957f38abbf154fc873765c490d4;p=evince.git Page Up/Down should do page jumps in "Best fit" mode. If a user has 2006-10-19 Wouter Bolsterlee * shell/ev-view.c: (ev_view_scroll): Page Up/Down should do page jumps in "Best fit" mode. If a user has explicitly chosen to view exactly one page at a time, scrolling just a part of the page when pressing Page Up/Down is not right. Fixes bug #323107. --- diff --git a/ChangeLog b/ChangeLog index 0a12617a..30715a48 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2006-10-19 Wouter Bolsterlee + + * shell/ev-view.c: (ev_view_scroll): + Page Up/Down should do page jumps in "Best fit" mode. + If a user has explicitly chosen to view exactly one page + at a time, scrolling just a part of the page when + pressing Page Up/Down is not right. Fixes bug #323107. + 2006-10-09 Nickolay V. Shmyrev * NEWS: diff --git a/shell/ev-view.c b/shell/ev-view.c index 4a2161be..3da5e83f 100644 --- a/shell/ev-view.c +++ b/shell/ev-view.c @@ -581,7 +581,7 @@ ev_view_scroll (EvView *view, view->jump_to_find_result = FALSE; - if (view->presentation) { + if (view->presentation || view->sizing_mode == EV_SIZING_BEST_FIT) { switch (scroll) { case EV_SCROLL_PAGE_BACKWARD: case EV_SCROLL_STEP_BACKWARD: