aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorchris <chris@e22d1c8e-a203-0410-8502-864332bf3fbf>2006-05-18 19:24:02 +0000
committerchris <chris@e22d1c8e-a203-0410-8502-864332bf3fbf>2006-05-18 19:24:02 +0000
commite2c308cc504a69e6f6ac9da61f1aa8946fba42b2 (patch)
tree2163454c7d96b5710bfb773e9339b706a7f973cf
parent6658001923050d17cfe846056fcfbcc0f8c3d9f2 (diff)
downloadweb-sato-e2c308cc504a69e6f6ac9da61f1aa8946fba42b2.tar.gz
web-sato-e2c308cc504a69e6f6ac9da61f1aa8946fba42b2.tar.bz2
web-sato-e2c308cc504a69e6f6ac9da61f1aa8946fba42b2.zip
Reverse push-scroll direction
git-svn-id: https://svn.o-hand.com/repos/web/trunk@94 e22d1c8e-a203-0410-8502-864332bf3fbf
-rw-r--r--ChangeLog5
-rw-r--r--src/web_main.c4
2 files changed, 7 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index 2f4ab1c..903c5d0 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2006-05-18 Chris Lord,,, <chris@openedhand.com>
+ * src/web_main.c: (web_page_motion_notify_cb):
+ Reverse push-scroll direction
+
+2006-05-18 Chris Lord,,, <chris@openedhand.com>
+
* data/web.glade:
- Add edit toggle to tool-button
diff --git a/src/web_main.c b/src/web_main.c
index ca6730a..0f45eb1 100644
--- a/src/web_main.c
+++ b/src/web_main.c
@@ -529,9 +529,9 @@ web_page_motion_notify_cb (GtkWidget *page, GdkEventMotion *event,
GTK_SCROLLED_WINDOW (data->scroll));
GtkAdjustment *vadjust = gtk_scrolled_window_get_vadjustment (
GTK_SCROLLED_WINDOW (data->scroll));
- h = gtk_adjustment_get_value (hadjust) +
+ h = gtk_adjustment_get_value (hadjust) -
(2*(event->x_root - data->x));
- v = gtk_adjustment_get_value (vadjust) +
+ v = gtk_adjustment_get_value (vadjust) -
(2*(event->y_root - data->y));
data->x = event->x_root;
data->y = event->y_root;