[evince] Prevent jumps to last page when autoscrolling
- From: Marek Kašík <mkasik src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evince] Prevent jumps to last page when autoscrolling
- Date: Wed, 21 May 2014 08:11:07 +0000 (UTC)
commit e983e168d034215fdf476f4f16b749a020b14429
Author: Marek Kasik <mkasik redhat com>
Date: Tue May 20 16:12:52 2014 +0200
Prevent jumps to last page when autoscrolling
It can happen during autoscrolling that current page is set to the last one
when you are moving towards beginning of the document and crosses toolbar
above the document.
This happens due to filling of unsigned integer "scroll_info.last_y"
with negative value.
https://bugzilla.gnome.org/show_bug.cgi?id=725389
libview/ev-view.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/libview/ev-view.c b/libview/ev-view.c
index 7618bbd..57acbf1 100644
--- a/libview/ev-view.c
+++ b/libview/ev-view.c
@@ -4964,7 +4964,8 @@ ev_view_motion_notify_event (GtkWidget *widget,
}
if (view->scroll_info.autoscrolling) {
- view->scroll_info.last_y = y;
+ if (y >= 0)
+ view->scroll_info.last_y = y;
return TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]