[evolution] Bug #671585 - e-week-view.c: Use page_increment for smooth scrolling
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] Bug #671585 - e-week-view.c: Use page_increment for smooth scrolling
- Date: Wed, 16 May 2012 13:30:51 +0000 (UTC)
commit f28b9dfded9f083c5d6d6537102e9c56fcc79e6d
Author: Volker Sobek <reklov live com>
Date: Wed May 16 15:30:08 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]