Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--shell/ev-view.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 9c7779b..d8eb8ac 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -319,8 +319,11 @@ scroll_to_current_page (EvView *view, GtkOrientation orientation)
doc_point_to_view_point (view, view->current_page, &view->pending_point, &view_point);
- view->pending_point.x = 0;
- view->pending_point.y = 0;
+ if (orientation == GTK_ORIENTATION_VERTICAL) {
+ view->pending_point.y = 0;
+ } else {
+ view->pending_point.x = 0;
+ }
if (orientation == GTK_ORIENTATION_VERTICAL) {
if (view->continuous) {