From ab44eb6f7808eaf9fddbf6a248cd227122593d5b Mon Sep 17 00:00:00 2001 From: Xiao-Long Chen Date: Thu, 11 Oct 2012 14:55:48 -0400 Subject: libview: Enable GDK_SMOOTH_SCROLL events for view This enables the smooth/kinetic scrolling support found in GTK+ 3.3.18 with the document view, and handles them for the Ctrl+scroll, Shift+scroll, and non-continuous best-fit mode scrolling cases. https://bugzilla.gnome.org/show_bug.cgi?id=674098 origin commit link: https://git.gnome.org/browse/evince/commit/?id=34d0d5d --- libview/ev-view-private.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libview/ev-view-private.h') diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h index eef79f92..f85af71d 100644 --- a/libview/ev-view-private.h +++ b/libview/ev-view-private.h @@ -150,6 +150,8 @@ struct _EvView { gint scroll_x; gint scroll_y; + /* Delta sum for emulating normal scrolling */ + gdouble total_delta; PendingScroll pending_scroll; gboolean pending_resize; EvPoint pending_point; -- cgit v1.2.1