Skip to content

Instantly share code, notes, and snippets.

@Riesi
Created September 2, 2022 13:29
Show Gist options
  • Save Riesi/72412ebd95b4945c5514b970c4673e07 to your computer and use it in GitHub Desktop.
Save Riesi/72412ebd95b4945c5514b970c4673e07 to your computer and use it in GitHub Desktop.
fixes Evince in non-continous mode
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 1ffbf16b..3ed571fe 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -1090,6 +1090,8 @@ ev_view_scroll (EvView *view,
} else if (value == lower) {
value = upper - page_size;
ev_view_previous_page (view);
+ // show bottom when going backwards
+ view->pending_point.y = value;
/* Jump to the top */
} else {
increment = compute_scroll_increment (view, GTK_SCROLL_PAGE_BACKWARD);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment