[evolution/gnome-3-4] Bug #671585 - e-week-view.c: Use page_increment for smooth scrolling



commit 89a6e224d73a84ed75b14be9a55dd2f5397e249f
Author: Volker Sobek <reklov live com>
Date:   Wed May 16 15:31:26 2012 +0200

    Bug #671585 - e-week-view.c: Use page_increment for smooth scrolling
    
    Otherwise 4 smooth scroll events with a delta_y of 1.0 are required to
    scroll the view by a month if the setting 'Scroll Month View by a week'
    is disabled.

 calendar/gui/e-week-view.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c
index dd419d2..4f6ec68 100644
--- a/calendar/gui/e-week-view.c
+++ b/calendar/gui/e-week-view.c
@@ -2535,7 +2535,7 @@ e_week_view_on_scroll (GtkWidget *widget,
 		#if GTK_CHECK_VERSION(3,3,18)
 		case GDK_SCROLL_SMOOTH:
 			if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) {
-				new_value = value + scroll->delta_y;
+				new_value = value + scroll->delta_y * page_increment;
 				break;
 			}
 			return FALSE;



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