evas_events: add checking state of point
authorHosang Kim <hosang12.kim@samsung.com>
Tue, 19 Sep 2017 08:22:48 +0000 (17:22 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Tue, 19 Sep 2017 08:22:48 +0000 (17:22 +0900)
Summary:
When multi down or multi move occur, state of touch point changes to EVAS_TOUCH_POINT_STILL.
So I add condition, "state == EVAS_TOUCH_POINT_STILL"

Reviewers: jypark, woohyun, cedric

Subscribers: cedric, jpeg

Differential Revision: https://phab.enlightenment.org/D5157

src/lib/evas/canvas/evas_events.c

index 0653f8d..aee416a 100644 (file)
@@ -1918,7 +1918,8 @@ _canvas_event_feed_mouse_cancel_internal(Evas_Public_Data *e, Efl_Input_Pointer_
    EINA_LIST_FOREACH_SAFE(e->touch_points, l, ll, point)
      {
         if ((point->state == EVAS_TOUCH_POINT_DOWN) ||
-            (point->state == EVAS_TOUCH_POINT_MOVE))
+            (point->state == EVAS_TOUCH_POINT_MOVE) ||
+            (point->state == EVAS_TOUCH_POINT_STILL))
           {
              ev->tool = point->id;
              ev->cur.x = point->x;