Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view-private.h
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2007-12-24 21:46:31 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2007-12-24 21:46:31 (GMT)
commit4afda26e15369c1ff2dbbdb132438f3cfaccb529 (patch)
tree6137a63836ad42c138aff46cab519edad6422f6e /shell/ev-view-private.h
parent2740d28b0dd8752bf5dbfd10099f7fd274be4d34 (diff)
Kinetic scrolling implemented as requested in bug #461271. Thanks to David
2007-12-25 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-view-private.h: * shell/ev-view.c: (ev_view_drag_update_momentum), (ev_view_scroll_drag_release), (ev_view_motion_notify_event), (ev_view_button_release_event), (ev_view_destroy): Kinetic scrolling implemented as requested in bug #461271. Thanks to David Turner <cillian64@googlemail.com>. svn path=/trunk/; revision=2783
Diffstat (limited to 'shell/ev-view-private.h')
-rw-r--r--shell/ev-view-private.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/shell/ev-view-private.h b/shell/ev-view-private.h
index 22bd7a0..a2a2812 100644
--- a/shell/ev-view-private.h
+++ b/shell/ev-view-private.h
@@ -28,12 +28,18 @@
#include "ev-form-field.h"
#include "ev-selection.h"
+#define DRAG_HISTORY 10
+
/* Information for middle clicking and moving around the doc */
typedef struct {
gboolean in_drag;
GdkPoint start;
gdouble hadj;
gdouble vadj;
+ guint drag_timeout_id;
+ guint release_timeout_id;
+ GdkPoint buffer[DRAG_HISTORY];
+ GdkPoint momentum;
} DragInfo;
/* Autoscrolling */