aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libindicator/indicator-ng.c8
1 files 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));
}