edje_callbacks: fix click signal emitting even though mouse event was cancelled 10/69110/1
authorJi-Youn Park <jy0703.park@samsung.com>
Wed, 11 May 2016 14:12:10 +0000 (22:42 +0830)
committerJi-Youn Park <jy0703.park@samsung.com>
Wed, 11 May 2016 14:12:10 +0000 (22:42 +0830)
    even though each part want to get the signal regardless of ON_HOLD,
    click signal should not emmitted if event flag is set to ON_HOLD.
    ON_HOLD means this event is useless, so up event with ON_HOLD flag cannot source of clicked signal.

    @fix

    open_commit 27495fe6705a5e28971cffdd8e9cfcb92868a439
    Author: Ji-Youn Park <jy0703.park@samsung.com>
    Date:   Wed May 11 22:14:27 2016 +0830

Change-Id: I953268970ef1bcf74725a5e938ee37eed19d953d

src/lib/edje/edje_callbacks.c

index 39a6255..45f98dd 100644 (file)
@@ -222,7 +222,7 @@ _edje_mouse_up_signal_cb(void *data, Eo *obj, const Eo_Event_Description *desc E
           }
      }
 
-   if ((rp->still_in) && (rp->clicked_button == ev->button) && (!ignored))
+   if ((rp->still_in) && (rp->clicked_button == ev->button) && (!ev->event_flags))
      {
         snprintf(buf, sizeof(buf), "mouse,clicked,%i", ev->button);
         _edje_emit(ed, buf, rp->part->name);