cedric pushed a commit to branch master.

http://git.enlightenment.org/core/elementary.git/commit/?id=55c5f3b6169ea0a7e230675f6ba8c2b7b122cd6a

commit 55c5f3b6169ea0a7e230675f6ba8c2b7b122cd6a
Author: woochan lee <wc0917....@samsung.com>
Date:   Wed Dec 2 14:56:39 2015 -0800

    spinner: prevent scrolling when longpress timer enabled.
    
    Summary:
    Spinner on scroller case.
    
    Scroll should be freeze when spinner button in long press state.
    If not, the scolling will be started after delete longpress timer.
    
    Like a other widgets, scroll not allowing is correct action for this.
    
    @fix
    
    Reviewers: jaehwan, Hermet, eagleeye, cedric
    
    Differential Revision: https://phab.enlightenment.org/D3334
    
    Signed-off-by: Cedric BAIL <ced...@osg.samsung.com>
---
 src/lib/elm_spinner.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/elm_spinner.c b/src/lib/elm_spinner.c
index d2793bb..251a377 100644
--- a/src/lib/elm_spinner.c
+++ b/src/lib/elm_spinner.c
@@ -540,6 +540,8 @@ _val_inc_start(void *data)
    sd->spin_timer = ecore_timer_add(sd->interval, _spin_value, data);
    _spin_value(data);
 
+   elm_widget_scroll_freeze_push(data);
+
    return ECORE_CALLBACK_CANCEL;
 }
 
@@ -555,6 +557,8 @@ _val_dec_start(void *data)
    sd->spin_timer = ecore_timer_add(sd->interval, _spin_value, data);
    _spin_value(data);
 
+   elm_widget_scroll_freeze_push(data);
+
    return ECORE_CALLBACK_CANCEL;
 }
 
@@ -566,6 +570,8 @@ _spin_stop(Evas_Object *obj)
    sd->interval = sd->first_interval;
    sd->spin_speed = 0;
    ELM_SAFE_FREE(sd->spin_timer, ecore_timer_del);
+
+   elm_widget_scroll_freeze_pop(obj);
 }
 
 static Eina_Bool

-- 


Reply via email to