Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-view.c
diff options
context:
space:
mode:
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>2008-01-14 22:31:40 (GMT)
committer Nickolay V. Shmyrev <nshmyrev@src.gnome.org>2008-01-14 22:31:40 (GMT)
commitb5ae55d36d4e39b8fcd248d66ad077111d74e9b5 (patch)
tree64758e11a9de1f9f5fcf4c0b3b05e47d62744f01 /shell/ev-view.c
parentaa6b4589ed88529d7d57a9e149a1746b9a2daf63 (diff)
Repair gorizontal scrolling with shift. Fixes bug #483412.
2008-01-15 Nickolay V. Shmyrev <nshmyrev@yandex.ru> * shell/ev-view.c: (ev_view_scroll_event): Repair gorizontal scrolling with shift. Fixes bug #483412. svn path=/trunk/; revision=2826
Diffstat (limited to 'shell/ev-view.c')
-rw-r--r--shell/ev-view.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/shell/ev-view.c b/shell/ev-view.c
index 0fd2834..cb2d026 100644
--- a/shell/ev-view.c
+++ b/shell/ev-view.c
@@ -2385,15 +2385,16 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
}
view->jump_to_find_result = FALSE;
+
/* Shift+Wheel scrolls the in the perpendicular direction */
if (state & GDK_SHIFT_MASK) {
if (event->direction == GDK_SCROLL_UP)
event->direction = GDK_SCROLL_LEFT;
- if (event->direction == GDK_SCROLL_LEFT)
+ else if (event->direction == GDK_SCROLL_LEFT)
event->direction = GDK_SCROLL_UP;
- if (event->direction == GDK_SCROLL_DOWN)
+ else if (event->direction == GDK_SCROLL_DOWN)
event->direction = GDK_SCROLL_RIGHT;
- if (event->direction == GDK_SCROLL_RIGHT)
+ else if (event->direction == GDK_SCROLL_RIGHT)
event->direction = GDK_SCROLL_DOWN;
event->state &= ~GDK_SHIFT_MASK;