set ON_HOLD flag when triggering gadget mouse buttion actions

allow detection that this event is being consumed
This commit is contained in:
Mike Blumenkrantz 2016-10-17 12:42:28 -04:00
parent ef4cc47e11
commit 3ca3740f52
1 changed files with 1 additions and 0 deletions

View File

@ -264,6 +264,7 @@ _clock_cb_mouse_down(void *data, Evas *evas EINA_UNUSED, Evas_Object *obj EINA_U
Evas_Event_Mouse_Down *ev = event;
if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return;
ev->event_flags |= EVAS_EVENT_FLAG_ON_HOLD;
if (ev->button == 1)
{
if (inst->popup) elm_ctxpopup_dismiss(inst->popup);