diff options
Diffstat (limited to 'calendar/gui/e-day-view.c')
-rw-r--r-- | calendar/gui/e-day-view.c | 32 |
1 files changed, 30 insertions, 2 deletions
diff --git a/calendar/gui/e-day-view.c b/calendar/gui/e-day-view.c index ad7fd78cd3..be096b5e6b 100644 --- a/calendar/gui/e-day-view.c +++ b/calendar/gui/e-day-view.c @@ -3276,6 +3276,14 @@ e_day_view_on_main_canvas_scroll (GtkWidget *widget, case GDK_SCROLL_DOWN: e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE); return TRUE; + #if GTK_CHECK_VERSION(3,3,18) + case GDK_SCROLL_SMOOTH: + if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) { + e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y); + return TRUE; + } + break; + #endif default: break; } @@ -3295,9 +3303,19 @@ e_day_view_on_top_canvas_scroll (GtkWidget *widget, case GDK_SCROLL_DOWN: e_day_view_top_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE); return TRUE; + #if GTK_CHECK_VERSION(3,3,18) + case GDK_SCROLL_SMOOTH: + if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) { + e_day_view_top_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y); + return TRUE; + } + break; + #endif default: - return FALSE; + break; } + + return FALSE; } static gboolean @@ -3319,9 +3337,19 @@ e_day_view_on_time_canvas_scroll (GtkWidget *widget, case GDK_SCROLL_DOWN: e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE); return TRUE; + #if GTK_CHECK_VERSION(3,3,18) + case GDK_SCROLL_SMOOTH: + if (scroll->delta_y < -0.001 || scroll->delta_y > 0.001) { + e_day_view_scroll (day_view, -E_DAY_VIEW_WHEEL_MOUSE_STEP_SIZE * scroll->delta_y); + return TRUE; + } + break; + #endif default: - return FALSE; + break; } + + return FALSE; } static gboolean |