forked from enlightenment/efl
spinner: Fix mouse wheel events
Fix invalid cast of event_info
This commit is contained in:
parent
bcb251e6ab
commit
a6b5765c3d
|
@ -709,7 +709,7 @@ EOLIAN static Eina_Bool
|
||||||
_elm_spinner_elm_widget_event(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED, Evas_Object *src EINA_UNUSED, Evas_Callback_Type type, void *event_info)
|
_elm_spinner_elm_widget_event(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED, Evas_Object *src EINA_UNUSED, Evas_Callback_Type type, void *event_info)
|
||||||
{
|
{
|
||||||
Evas_Event_Key_Down *ev = event_info;
|
Evas_Event_Key_Down *ev = event_info;
|
||||||
Evas_Event_Mouse_Wheel *mev;
|
Evas_Event_Mouse_Wheel *mev = event_info;
|
||||||
|
|
||||||
if (type == EVAS_CALLBACK_KEY_DOWN)
|
if (type == EVAS_CALLBACK_KEY_DOWN)
|
||||||
{
|
{
|
||||||
|
@ -727,8 +727,7 @@ _elm_spinner_elm_widget_event(Eo *obj, Elm_Spinner_Data *sd EINA_UNUSED, Evas_Ob
|
||||||
}
|
}
|
||||||
else if (type == EVAS_CALLBACK_MOUSE_WHEEL)
|
else if (type == EVAS_CALLBACK_MOUSE_WHEEL)
|
||||||
{
|
{
|
||||||
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE;
|
if (mev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return EINA_FALSE;
|
||||||
mev = event_info;
|
|
||||||
sd->interval = sd->first_interval;
|
sd->interval = sd->first_interval;
|
||||||
if (mev->z < 0)
|
if (mev->z < 0)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue