[nautilus] view: fix zoom direction for smooth scrolling case



commit 878e2a4f7ada26bb7c106e5bbdbd8434acf86c77
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Thu Mar 8 13:09:21 2012 -0500

    view: fix zoom direction for smooth scrolling case

 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 ed0c78c..f99a0f1 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;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]