diff options
author | Hosang Kim <hosang12.kim@samsung.com> | 2017-09-19 17:22:48 +0900 |
---|---|---|
committer | Jean-Philippe Andre <jp.andre@samsung.com> | 2017-09-19 17:22:48 +0900 |
commit | 425c98289df3d06b1bf4ad305f5ffce02a70098d (patch) | |
tree | 28b19a1a943853ec230896c9720c0a53a68b6ccf | |
parent | cc691776f31f09e3012272c5bb02579efaaf1dc7 (diff) |
evas_events: add checking state of point
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
-rw-r--r-- | src/lib/evas/canvas/evas_events.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/evas/canvas/evas_events.c b/src/lib/evas/canvas/evas_events.c index 0653f8dc90..aee416a99a 100644 --- a/src/lib/evas/canvas/evas_events.c +++ b/src/lib/evas/canvas/evas_events.c | |||
@@ -1918,7 +1918,8 @@ _canvas_event_feed_mouse_cancel_internal(Evas_Public_Data *e, Efl_Input_Pointer_ | |||
1918 | EINA_LIST_FOREACH_SAFE(e->touch_points, l, ll, point) | 1918 | EINA_LIST_FOREACH_SAFE(e->touch_points, l, ll, point) |
1919 | { | 1919 | { |
1920 | if ((point->state == EVAS_TOUCH_POINT_DOWN) || | 1920 | if ((point->state == EVAS_TOUCH_POINT_DOWN) || |
1921 | (point->state == EVAS_TOUCH_POINT_MOVE)) | 1921 | (point->state == EVAS_TOUCH_POINT_MOVE) || |
1922 | (point->state == EVAS_TOUCH_POINT_STILL)) | ||
1922 | { | 1923 | { |
1923 | ev->tool = point->id; | 1924 | ev->tool = point->id; |
1924 | ev->cur.x = point->x; | 1925 | ev->cur.x = point->x; |