efl/gesture: discard non-press events for all touch points if unseen previously

not sure why this was restricted to first touch point previously, but the logic
applies to all points as we don't want to be tracking input for a touch we
haven't gotten a down for

Differential Revision: https://phab.enlightenment.org/D11169
This commit is contained in:
Mike Blumenkrantz 2020-01-23 15:20:12 -05:00
parent 0ac5244176
commit a77b635327
1 changed files with 2 additions and 1 deletions

View File

@ -82,11 +82,12 @@ _efl_canvas_gesture_touch_point_record(Eo *obj EINA_UNUSED, Efl_Canvas_Gesture_T
else
{
//New finger
if (!id && (action != EFL_POINTER_ACTION_DOWN))
if (action != EFL_POINTER_ACTION_DOWN)
{
//Discard any other event
return;
}
point = calloc(1, sizeof(Efl_Gesture_Touch_Point_Data));
if (!point) return;
point->start.pos = point->prev.pos = point->cur.pos = _pos;