From b5ae55d36d4e39b8fcd248d66ad077111d74e9b5 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Mon, 14 Jan 2008 22:31:40 +0000 Subject: [PATCH] Repair gorizontal scrolling with shift. Fixes bug #483412. 2008-01-15 Nickolay V. Shmyrev * shell/ev-view.c: (ev_view_scroll_event): Repair gorizontal scrolling with shift. Fixes bug #483412. svn path=/trunk/; revision=2826 --- ChangeLog | 7 +++++++ shell/ev-view.c | 7 ++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 958934fb..ece8c4e2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-01-15 Nickolay V. Shmyrev + + * shell/ev-view.c: (ev_view_scroll_event): + + Repair gorizontal scrolling with shift. Fixes + bug #483412. + 2008-01-13 Carlos Garcia Campos * MAINTAINERS: diff --git a/shell/ev-view.c b/shell/ev-view.c index 0fd2834a..cb2d0265 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; -- 2.43.5