summaryrefslogtreecommitdiffstats
path: root/Source/WebKit/efl/ewk/ewk_frame.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebKit/efl/ewk/ewk_frame.cpp')
-rw-r--r--Source/WebKit/efl/ewk/ewk_frame.cpp9
1 files changed, 7 insertions, 2 deletions
diff --git a/Source/WebKit/efl/ewk/ewk_frame.cpp b/Source/WebKit/efl/ewk/ewk_frame.cpp
index 0e2f903..4e52b56 100644
--- a/Source/WebKit/efl/ewk/ewk_frame.cpp
+++ b/Source/WebKit/efl/ewk/ewk_frame.cpp
@@ -1484,9 +1484,14 @@ Eina_Bool ewk_frame_feed_touch_event(Evas_Object* o, Ewk_Touch_Event_Type action
Eina_Bool ret = EINA_FALSE;
#if ENABLE(TOUCH_EVENTS)
- EWK_FRAME_SD_GET_OR_RETURN(o, sd, EINA_FALSE);
- EINA_SAFETY_ON_NULL_RETURN_VAL(sd->frame, EINA_FALSE);
EINA_SAFETY_ON_NULL_RETURN_VAL(points, EINA_FALSE);
+ EWK_FRAME_SD_GET(o, sd);
+
+ if (!sd || !sd->frame || !ewk_view_need_touch_events_get(sd->view)) {
+ void* point;
+ EINA_LIST_FREE(points, point);
+ return EINA_FALSE;
+ }
Evas_Coord x, y;
evas_object_geometry_get(sd->view, &x, &y, 0, 0);