forked from enlightenment/efl
elm/map: ignore zoom events during construction which cannot be handled
Summary: sd->obj is null until after the object is finalized, so this codepath cannot be processed until then @fix Depends on D8966 Reviewers: devilhorns Reviewed By: devilhorns Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D8967
This commit is contained in:
parent
fb63dfae77
commit
f0a136f999
|
@ -1159,14 +1159,16 @@ _zoom_do(Elm_Map_Data *sd,
|
||||||
ecore_timer_del(sd->zoom_timer);
|
ecore_timer_del(sd->zoom_timer);
|
||||||
sd->zoom_timer = NULL;
|
sd->zoom_timer = NULL;
|
||||||
}
|
}
|
||||||
else
|
else if (sd->obj)
|
||||||
efl_event_callback_legacy_call
|
efl_event_callback_legacy_call
|
||||||
(sd->obj, EFL_UI_EVENT_ZOOM_START, NULL);
|
(sd->obj, EFL_UI_EVENT_ZOOM_START, NULL);
|
||||||
|
|
||||||
if (sd->obj)
|
if (sd->obj)
|
||||||
sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
|
{
|
||||||
efl_event_callback_legacy_call
|
sd->zoom_timer = ecore_timer_add(0.25, _zoom_timeout_cb, sd->obj);
|
||||||
(sd->obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
|
efl_event_callback_legacy_call
|
||||||
|
(sd->obj, EFL_UI_EVENT_ZOOM_CHANGE, NULL);
|
||||||
|
}
|
||||||
|
|
||||||
efl_event_callback_legacy_call
|
efl_event_callback_legacy_call
|
||||||
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
|
(sd->pan_obj, ELM_PAN_EVENT_CHANGED, NULL);
|
||||||
|
|
Loading…
Reference in New Issue