Skip to content

Instantly share code, notes, and snippets.

@jmbr
Created September 19, 2022 18:52
Show Gist options
  • Save jmbr/d7409881b2b13062f08df81702250536 to your computer and use it in GitHub Desktop.
Save jmbr/d7409881b2b13062f08df81702250536 to your computer and use it in GitHub Desktop.
Change default scrolling mode of Evince when changing pages.
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 1ffbf16..079cfd0 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -8616,7 +8616,7 @@ ev_view_change_page (EvView *view,
gint x, y;
view->current_page = new_page;
- view->pending_scroll = SCROLL_TO_PAGE_POSITION;
+ view->pending_scroll = SCROLL_TO_KEEP_POSITION;
ev_view_set_loading (view, FALSE);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment