summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-11 11:08:57 +0200
committerMarcel Hollerbach <mail@marcel-hollerbach.de>2020-04-11 11:11:20 +0200
commitff6b0eec83568fef1a9139ceb3c990c1745882d9 (patch)
treef4a20dbf55bb5c2153fe033e6ac1530e4903d0d6
parentd74f17239cef6d407503ad938c0391e47a49a060 (diff)
elm_slider: create timer for hiding later
_popup_show deletes the hide timer, hence we need to create the timer later on, or this will not automatically hide the indicator. Differential Revision: https://phab.enlightenment.org/D11679
-rw-r--r--src/lib/elementary/elm_slider.c10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/lib/elementary/elm_slider.c b/src/lib/elementary/elm_slider.c
index 8aa6536a7a..9292e8a915 100644
--- a/src/lib/elementary/elm_slider.c
+++ b/src/lib/elementary/elm_slider.c
@@ -630,9 +630,6 @@ _elm_slider_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Slider_Data *s
630 else 630 else
631 _drag_down(obj, NULL, NULL, NULL); 631 _drag_down(obj, NULL, NULL, NULL);
632 efl_input_processed_set(ev, EINA_TRUE); 632 efl_input_processed_set(ev, EINA_TRUE);
633 ELM_SAFE_FREE(sd->wheel_indicator_timer, ecore_timer_del);
634 sd->wheel_indicator_timer =
635 ecore_timer_add(0.5, _wheel_indicator_timer_cb, obj);
636 } 633 }
637 else return EINA_FALSE; 634 else return EINA_FALSE;
638 635
@@ -640,6 +637,13 @@ _elm_slider_efl_ui_widget_widget_input_event_handler(Eo *obj, Elm_Slider_Data *s
640 _val_fetch(obj, EINA_TRUE); 637 _val_fetch(obj, EINA_TRUE);
641 evas_object_smart_changed(obj); 638 evas_object_smart_changed(obj);
642 639
640 if (eo_event->desc == EFL_EVENT_POINTER_WHEEL)
641 {
642 ELM_SAFE_FREE(sd->wheel_indicator_timer, ecore_timer_del);
643 sd->wheel_indicator_timer =
644 ecore_timer_add(0.5, _wheel_indicator_timer_cb, obj);
645 }
646
643 return EINA_TRUE; 647 return EINA_TRUE;
644} 648}
645 649