forked from enlightenment/efl
ecore_cocoa: fix broken scrolling
Evas events recently changed, and involved the use of the 'multi' field within a mouse mouve event. It was used afterwards for mouse scrolling, but since it was never set by ecore_cocoa, scrolling went broken... Fixes T3789
This commit is contained in:
parent
088f4af9e7
commit
de5f293426
|
@ -278,6 +278,10 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
|
||||||
ev->event_window = ev->window;
|
ev->event_window = ev->window;
|
||||||
ev->modifiers = 0; /* FIXME: keep modifier around. */
|
ev->modifiers = 0; /* FIXME: keep modifier around. */
|
||||||
|
|
||||||
|
ev->multi.device = 0;
|
||||||
|
ev->multi.x = ev->x;
|
||||||
|
ev->multi.y = ev->y;
|
||||||
|
|
||||||
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
|
ecore_event_add(ECORE_EVENT_MOUSE_MOVE, ev, NULL, NULL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue