From 51bb08a308a67957f38abbf154fc873765c490d4 Mon Sep 17 00:00:00 2001 From: Wouter Bolsterlee Date: Thu, 19 Oct 2006 16:06:17 +0000 Subject: [PATCH] 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. --- ChangeLog | 8 ++++++++ shell/ev-view.c | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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: -- 2.43.5