summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-03-03 18:11:55 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-03-17 10:42:51 +0100
commitbe98af31bf2b2b1931018f71a628b9089be89675 (patch)
treec9bff97c97402de3046223052f4397ca9a5f4ea4
parentef7e8562a1cb73e0df5d5ee97d0d7c2c1426c0c4 (diff)
ecore_cocoa: fix mouse scrollwheel direction
horizontal and vertical direction where inverted @fix
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index a20c72ba2f..1da3ed5b57 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -333,7 +333,7 @@ ecore_cocoa_feed_events(void *anEvent)
333 ev->modifiers = 0; /* FIXME: keep modifier around. */ 333 ev->modifiers = 0; /* FIXME: keep modifier around. */
334 ev->timestamp = time; 334 ev->timestamp = time;
335 ev->z = [event deltaX] != 0 ? [event deltaX] : -([event deltaY]); 335 ev->z = [event deltaX] != 0 ? [event deltaX] : -([event deltaY]);
336 ev->direction = [event deltaX] != 0 ? 0 : 1; 336 ev->direction = [event deltaX] != 0 ? 1 : 0;
337 337
338 ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, NULL, NULL); 338 ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, NULL, NULL);
339 339