From 2d9786b2a29daec074b91b1ceef71861cb60f561 Mon Sep 17 00:00:00 2001 From: Seongjun Yim Date: Fri, 2 Aug 2013 19:20:37 +0900 Subject: [PATCH] fix longpress gesture bug Change-Id: I8a3ffb06a752d89948557d777ad252f021ae8407 Signed-off-by: Seongjun Yim --- src/controls/FWebCtrl_GestureState.cpp | 4 ++-- src/controls/FWebCtrl_WebImpl.cpp | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/controls/FWebCtrl_GestureState.cpp b/src/controls/FWebCtrl_GestureState.cpp index c17df52..93419bd 100755 --- a/src/controls/FWebCtrl_GestureState.cpp +++ b/src/controls/FWebCtrl_GestureState.cpp @@ -100,12 +100,12 @@ _TapGestureState::OnLongPressGestureDetected(_TouchLongPressGestureDetector& ges pPoint->id = 0; pPoint->x = absPoint.x; pPoint->y = absPoint.y; - pPoint->state = EVAS_TOUCH_POINT_UP; + pPoint->state = EVAS_TOUCH_POINT_CANCEL; Eina_List* pPointList = null; pPointList = eina_list_append(pPointList, pPoint); - ewk_view_feed_touch_event(__pWebCore->GetWebNativeNode(), EWK_TOUCH_END, pPointList, null); + ewk_view_feed_touch_event(__pWebCore->GetWebNativeNode(), EWK_TOUCH_CANCEL, pPointList, null); void* pData = null; EINA_LIST_FREE(pPointList, pData) diff --git a/src/controls/FWebCtrl_WebImpl.cpp b/src/controls/FWebCtrl_WebImpl.cpp index a3221c6..e2ce55c 100755 --- a/src/controls/FWebCtrl_WebImpl.cpp +++ b/src/controls/FWebCtrl_WebImpl.cpp @@ -833,12 +833,12 @@ OnFullScreenEntered(void* pUserData, Evas_Object* pView, void* pEventInfo) { _WebImpl* pImpl = reinterpret_cast<_WebImpl*>(pUserData); bool* pIsHandleNeeded = reinterpret_cast< bool* >(pEventInfo); - SysAssertf(pImpl && pIsHandleNeeded, "Failed to request"); + SysAssertf(pImpl, "Failed to request"); _Web* pWebCore = dynamic_cast< _Web* >(&(pImpl->GetCore())); SysAssertf(pWebCore, "Failed to get Web core object"); - if (*pIsHandleNeeded) + if (pIsHandleNeeded && *pIsHandleNeeded) { pWebCore->SetFullScreenEntered(true); } -- 2.7.4