From 19b729898ed630a0923fa91a4ee4c0146c7939a7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= Date: Wed, 16 Jul 2014 15:41:25 +0200 Subject: IndicatorNG: Reverse the scroll delta on left scroll events As it happens for left scroll events. --- libindicator/indicator-ng.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/libindicator/indicator-ng.c b/libindicator/indicator-ng.c index d83a2b5..d1d2854 100644 --- a/libindicator/indicator-ng.c +++ b/libindicator/indicator-ng.c @@ -194,8 +194,12 @@ indicator_ng_entry_scrolled (IndicatorObject *io, if (self->actions && self->scroll_action) { - if (direction == INDICATOR_OBJECT_SCROLL_DOWN) - delta *= -1; + if (direction == INDICATOR_OBJECT_SCROLL_DOWN || + direction == INDICATOR_OBJECT_SCROLL_LEFT) + { + delta *= -1; + } + g_action_group_activate_action (self->actions, self->scroll_action, g_variant_new_int32 (delta)); } -- cgit v1.2.3