diff options
author | Cosimo Cecchi <cosimoc@gnome.org> | 2012-03-08 13:09:21 -0500 |
---|---|---|
committer | Cosimo Cecchi <cosimoc@gnome.org> | 2012-03-08 13:09:21 -0500 |
commit | 878e2a4f7ada26bb7c106e5bbdbd8434acf86c77 (patch) | |
tree | b22b3e0b3bd8d6ff919a88e38e1c30af726fbc3e | |
parent | 1a76e044a2c9b834d00c4ea30f1e3af3321d8cdd (diff) | |
download | nautilus-878e2a4f7ada26bb7c106e5bbdbd8434acf86c77.tar.gz |
view: fix zoom direction for smooth scrolling case
-rw-r--r-- | src/nautilus-view.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/nautilus-view.c b/src/nautilus-view.c index ed0c78cb5..f99a0f1bd 100644 --- a/src/nautilus-view.c +++ b/src/nautilus-view.c @@ -9484,10 +9484,12 @@ nautilus_view_handle_scroll_event (NautilusView *directory_view, &delta_x, &delta_y); if (delta_y > 0) { - nautilus_view_bump_zoom_level (directory_view, 1); + /* emulate scroll down */ + nautilus_view_bump_zoom_level (directory_view, -1); return TRUE; } else if (delta_y < 0) { - nautilus_view_bump_zoom_level (directory_view, -1); + /* emulate scroll up */ + nautilus_view_bump_zoom_level (directory_view, 1); return TRUE; } else { break; |