efl/gesture: discard non-press events for all touch points if unseen previously
authorMike Blumenkrantz <zmike@samsung.com>
Thu, 23 Jan 2020 20:20:12 +0000 (15:20 -0500)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 11 Feb 2020 21:58:35 +0000 (06:58 +0900)
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

Reviewed-by: woochan lee <wc0917.lee@samsung.com>
Differential Revision: https://phab.enlightenment.org/D11169

src/lib/evas/gesture/efl_canvas_gesture_touch.c

index d621b3b..f6a1f71 100644 (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;