From f28b9dfded9f083c5d6d6537102e9c56fcc79e6d Mon Sep 17 00:00:00 2001 From: Volker Sobek Date: Wed, 16 May 2012 15:30:08 +0200 Subject: 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 file changed, 1 insertion(+), 1 deletion(-) (limited to 'calendar/gui') diff --git a/calendar/gui/e-week-view.c b/calendar/gui/e-week-view.c index dd419d289c..4f6ec6812a 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; -- cgit