From be98af31bf2b2b1931018f71a628b9089be89675 Mon Sep 17 00:00:00 2001 From: pierre lamot Date: Tue, 3 Mar 2015 18:11:55 +0100 Subject: [PATCH] ecore_cocoa: fix mouse scrollwheel direction horizontal and vertical direction where inverted @fix --- src/lib/ecore_cocoa/ecore_cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m index a20c72b..1da3ed5 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) ev->modifiers = 0; /* FIXME: keep modifier around. */ ev->timestamp = time; ev->z = [event deltaX] != 0 ? [event deltaX] : -([event deltaY]); - ev->direction = [event deltaX] != 0 ? 0 : 1; + ev->direction = [event deltaX] != 0 ? 1 : 0; ecore_event_add(ECORE_EVENT_MOUSE_WHEEL, ev, NULL, NULL); -- 2.7.4