summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorXiao-Long Chen <[email protected]>2012-10-11 14:55:48 -0400
committerraveit65 <[email protected]>2017-08-18 21:18:30 +0200
commitab44eb6f7808eaf9fddbf6a248cd227122593d5b (patch)
treeff1ec5841d1a49db10cca192c604afa68a79f6b2 /libview/ev-view-private.h
parentd4a003784ca37950a2c5bd0ccb5289807e834ce6 (diff)
downloadatril-ab44eb6f7808eaf9fddbf6a248cd227122593d5b.tar.bz2
atril-ab44eb6f7808eaf9fddbf6a248cd227122593d5b.tar.xz
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
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h2
1 files changed, 2 insertions, 0 deletions
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;