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
This commit is contained in:
Hosang Kim 2017-09-19 17:22:48 +09:00 committed by Jean-Philippe Andre
parent cc691776f3
commit 425c98289d
1 changed files with 2 additions and 1 deletions

View 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;