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-14 11:37:41 +0200
commit74f109e64391d8e7a084f7c9f1d5e937bc377be1 (patch)
treeb7667dfcfccdd316807e7f57cbeccf4f2ce7bef4
parent3897603796a74f438167cacc3bba43b76b41d3dd (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