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 <cedric@osg.samsung.com>
This commit is contained in:
woochan lee 2015-12-02 14:56:39 -08:00 committed by Cedric BAIL
parent e69eeef28c
commit 70a888cc03
1 changed files with 6 additions and 0 deletions

View File

@ -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