ecore_cocoa: fix mouse scrollwheel direction

horizontal and vertical direction where inverted

@fix
This commit is contained in:
pierre lamot 2015-03-03 18:11:55 +01:00 committed by Cedric BAIL
parent ef7e8562a1
commit be98af31bf
1 changed files with 1 additions and 1 deletions

View File

@ -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);