diff options
author | Subodh Kumar <s7158.kumar@samsung.com> | 2015-07-29 21:18:17 +0200 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-07-29 21:18:20 +0200 |
commit | 70e5ec00a04f92aa1da3d495de0e3c7869c3287e (patch) | |
tree | 94d95259bddc8695a532b444f90f65515baf0db9 /src/lib/elm_image.c | |
parent | f8d151b0542eb954b5cd4010d7171366e7f47646 (diff) | |
download | elementary-70e5ec00a04f92aa1da3d495de0e3c7869c3287e.tar.gz |
elm: simulate the clicked event over the object only.
Summary:
Two different behaviour are observed with clicked event.
1. When scroller is not present:
a. Mouse down over object,
b. mouse move outside the object
c. mouse up, clicked happens
2. When scroller is present:
a. Mouse down over object,
b. mouse move outside the object
c. mouse up, clicked NOT happens
So clicked callback should happen over the object only i.e when mouse move out of the objcet clicked should be ignored, and behaviour will be consistent
@fix
Test Plan: NA
Reviewers: shilpasingh, cedric
Differential Revision: https://phab.enlightenment.org/D2856
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
Diffstat (limited to 'src/lib/elm_image.c')
-rw-r--r-- | src/lib/elm_image.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/lib/elm_image.c b/src/lib/elm_image.c index 17e54cc08..f1b7b5796 100644 --- a/src/lib/elm_image.c +++ b/src/lib/elm_image.c @@ -67,10 +67,13 @@ _on_mouse_up(void *data, Evas_Object *obj EINA_UNUSED, void *event_info) { + ELM_WIDGET_DATA_GET_OR_RETURN(data, wd); + Evas_Event_Mouse_Up *ev = event_info; if (ev->button != 1) return; if (ev->event_flags & EVAS_EVENT_FLAG_ON_HOLD) return; + if (!wd->still_in) return; eo_do(data, eo_event_callback_call(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, NULL)); } |