efl_ui_pager: return mouse_down function if cnt equals zero

This commit is contained in:
Jaeun Choi 2019-03-29 19:23:20 +09:00
parent 913a5bff66
commit 0b2cf57bbc
1 changed files with 2 additions and 0 deletions

View File

@ -169,6 +169,8 @@ _mouse_down_cb(void *data,
if (efl_input_pointer_button_get(ev) != 1) return;
if (efl_input_event_flags_get(ev) & EFL_INPUT_FLAGS_PROCESSED) return;
if (pd->cnt == 0) return;
efl_event_callback_del(obj, EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK, _mouse_up_animation, pd);
efl_event_callback_del(obj, EFL_CANVAS_OBJECT_EVENT_ANIMATOR_TICK, _page_set_animation, pd);