forked from enlightenment/enlightenment
set ON_HOLD flag when triggering gadget mouse buttion actions
allow detection that this event is being consumed
This commit is contained in:
parent
ef4cc47e11
commit
3ca3740f52
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue