aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJaehyun Cho <jae_hyun.cho@samsung.com>2019-06-19 20:23:22 +0900
committerJaehyun Cho <jae_hyun.cho@samsung.com>2019-06-19 20:23:22 +0900
commitc754a6bba652c4657d07820c143ea66172e09010 (patch)
tree4d4b5126f5419b37072be44287cbd2d24af491cc
parentefl_mono: support multilevel inheritance of NativeClass (diff)
downloadefl-c754a6bba652c4657d07820c143ea66172e09010.tar.gz
efl_ui_clickable: testdevs/jaehyun/efl_clickable_test
-rw-r--r--src/bin/elementary/test_ui_active_view.c12
-rw-r--r--src/lib/elementary/efl_ui_active_view_view_manager_scroll.c3
2 files changed, 13 insertions, 2 deletions
diff --git a/src/bin/elementary/test_ui_active_view.c b/src/bin/elementary/test_ui_active_view.c
index 8f0d21febb..e59bc8cb86 100644
--- a/src/bin/elementary/test_ui_active_view.c
+++ b/src/bin/elementary/test_ui_active_view.c
@@ -58,6 +58,12 @@ typedef struct _Size_Params
#define PAGE_NUM 3
+static void
+_cb(void *data, Evas_Object *obj, Evas *e, void *event_info)
+{
+ printf("asdfasdfasdf clicked\n");
+}
+
static Eo *
view_add(View_Type p, Eo *parent)
{
@@ -93,8 +99,10 @@ view_add(View_Type p, Eo *parent)
break;
case BUTTON:
- page = efl_add(EFL_UI_BUTTON_CLASS, parent,
- efl_text_set(efl_added, "Button Page"));
+ //page = efl_add(EFL_UI_BUTTON_CLASS, parent,
+ // efl_text_set(efl_added, "Button Page"));
+ page = elm_button_add(parent);
+ evas_object_smart_callback_add(page, "clicked", _cb, NULL);
efl_gfx_hint_fill_set(page, EINA_TRUE, EINA_TRUE);
break;
diff --git a/src/lib/elementary/efl_ui_active_view_view_manager_scroll.c b/src/lib/elementary/efl_ui_active_view_view_manager_scroll.c
index 6918703cf1..fff3d851e2 100644
--- a/src/lib/elementary/efl_ui_active_view_view_manager_scroll.c
+++ b/src/lib/elementary/efl_ui_active_view_view_manager_scroll.c
@@ -120,6 +120,9 @@ _mouse_move_cb(void *data,
if (efl_input_event_flags_get(ev) & EFL_INPUT_FLAGS_PROCESSED) return;
if (!pd->mouse_move.active) return;
+ if (!efl_input_processed_get(ev))
+ efl_input_processed_set(ev, EINA_TRUE);
+
pos = efl_input_pointer_position_get(ev);
pos_y_diff = pd->mouse_move.mouse_start.x - pos.x;