summaryrefslogtreecommitdiff
path: root/libview/ev-view-private.h
diff options
context:
space:
mode:
authorClement Lefebvre <[email protected]>2017-03-14 14:57:05 +0000
committerraveit65 <[email protected]>2017-08-18 21:18:30 +0200
commitd4a003784ca37950a2c5bd0ccb5289807e834ce6 (patch)
treed097ea27dd98d3c55ee5581827570893d8893e46 /libview/ev-view-private.h
parentc508d14764871f4d052cc28b283dc9f0f1416898 (diff)
downloadatril-d4a003784ca37950a2c5bd0ccb5289807e834ce6.tar.bz2
atril-d4a003784ca37950a2c5bd0ccb5289807e834ce6.tar.xz
libview: Ctrl+mouse wheel zoom should be pointer-centered, not window-centered
https://bugzilla.gnome.org/show_bug.cgi?id=731669 Upstream commit, Frédéric Moenne-loccoz committed with Carlos Garcia Campos on 15 Feb 2015: https://github.com/GNOME/evince/commit/9d9e14dfa9ae782e879961b7307f55b41b2a60b3
Diffstat (limited to 'libview/ev-view-private.h')
-rw-r--r--libview/ev-view-private.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/libview/ev-view-private.h b/libview/ev-view-private.h
index 1d1220f3..eef79f92 100644
--- a/libview/ev-view-private.h
+++ b/libview/ev-view-private.h
@@ -214,6 +214,10 @@ struct _EvView {
GtkGesture *zoom_gesture;
gdouble prev_zoom_gesture_scale;
EvPanAction pan_action;
+
+ /* Current zoom center */
+ gdouble zoom_center_x;
+ gdouble zoom_center_y;
};
struct _EvViewClass {