forked from enlightenment/efl
elm_slider: create timer for hiding later
Summary: _popup_show deletes the hide timer, hence we need to create the timer later on, or this will not automatically hide the indicator. Reviewers: stefan_schmidt, zmike, Jaehyun_Cho Reviewed By: zmike Subscribers: cedric, #reviewers, #committers Tags: #efl Differential Revision: https://phab.enlightenment.org/D11679
This commit is contained in:
parent
6312054181
commit
1fb7facaa5
|
@ -630,9 +630,6 @@ _elm_slider_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Slider_Data *s
|
|||
else
|
||||
_drag_down(obj, NULL, NULL, NULL);
|
||||
efl_input_processed_set(ev, EINA_TRUE);
|
||||
ELM_SAFE_FREE(sd->wheel_indicator_timer, ecore_timer_del);
|
||||
sd->wheel_indicator_timer =
|
||||
ecore_timer_add(0.5, _wheel_indicator_timer_cb, obj);
|
||||
}
|
||||
else return EINA_FALSE;
|
||||
|
||||
|
@ -640,6 +637,13 @@ _elm_slider_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Slider_Data *s
|
|||
_val_fetch(obj, EINA_TRUE);
|
||||
evas_object_smart_changed(obj);
|
||||
|
||||
if (eo_event->desc == EFL_EVENT_POINTER_WHEEL)
|
||||
{
|
||||
ELM_SAFE_FREE(sd->wheel_indicator_timer, ecore_timer_del);
|
||||
sd->wheel_indicator_timer =
|
||||
ecore_timer_add(0.5, _wheel_indicator_timer_cb, obj);
|
||||
}
|
||||
|
||||
return EINA_TRUE;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue