efl_ui_clickable_util: remove efl_input_processed_set
authorWooHyun Jung <wh0705.jung@samsung.com>
Thu, 1 Aug 2019 08:19:16 +0000 (17:19 +0900)
committerWooHyun Jung <wh0705.jung@samsung.com>
Mon, 5 Aug 2019 02:19:58 +0000 (11:19 +0900)
Summary:
efl_input_processed_set needs to be used only when specific
event marks that it is monopolizing current user interaction.
(such as scrolling).
But, press event or unpress event looks not that proper.

Reviewers: bu5hm4n, Jaehyun_Cho

Reviewed By: bu5hm4n, Jaehyun_Cho

Subscribers: AbdullehGhujeh, cedric, #reviewers, #committers

Tags: #efl

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

src/lib/elementary/efl_ui_clickable_util.c

index 50251c4..8e1c74f 100644 (file)
@@ -68,7 +68,6 @@ _press_cb(void *data, const Efl_Event *ev)
    if (!efl_input_processed_get(pointer))
      {
         efl_input_clickable_press(data, 1);
-        efl_input_processed_set(pointer, EINA_TRUE);
      }
 }
 
@@ -89,13 +88,11 @@ _unpress_cb(void *data, const Efl_Event *ev EINA_UNUSED)
         if (efl_canvas_object_pointer_mode_get(data) == EFL_INPUT_OBJECT_POINTER_MODE_AUTO_GRAB)
           {
              efl_input_clickable_unpress(data, 1);
-             efl_input_processed_set(pointer, EINA_TRUE);
           }
      }
    else
      {
         efl_input_clickable_unpress(data, 1);
-        efl_input_processed_set(pointer, EINA_TRUE);
      }
 }