]> www.fi.muni.cz Git - evince.git/commitdiff
[libview] Let scroll wheel change page when in non-continuous best-fit mode
authorPhilip Langdale <gnomebugs.philipl@overt.org>
Sat, 8 Aug 2009 14:37:07 +0000 (16:37 +0200)
committerCarlos Garcia Campos <carlosgc@gnome.org>
Sat, 8 Aug 2009 14:37:07 +0000 (16:37 +0200)
See bgo#562257.

libview/ev-view.c

index 613236319dc4aa4d4fefbd35b068434289686867..e1c84037e2209902e708ce14e4bee609cfc4e6be 100644 (file)
@@ -2735,7 +2735,9 @@ ev_view_scroll_event (GtkWidget *widget, GdkEventScroll *event)
                state &= ~GDK_SHIFT_MASK;
        }
 
-       if (state == 0 && view->presentation) {
+       if (state == 0 &&
+           (view->presentation ||
+            (view->sizing_mode == EV_SIZING_BEST_FIT && !view->continuous))) {
                switch (event->direction) {
                        case GDK_SCROLL_DOWN:
                        case GDK_SCROLL_RIGHT: