fix longpress gesture bug
authorSeongjun Yim <se201.yim@samsung.com>
Fri, 2 Aug 2013 10:20:37 +0000 (19:20 +0900)
committerSeongjun Yim <se201.yim@samsung.com>
Fri, 2 Aug 2013 10:20:37 +0000 (19:20 +0900)
Change-Id: I8a3ffb06a752d89948557d777ad252f021ae8407
Signed-off-by: Seongjun Yim <se201.yim@samsung.com>
src/controls/FWebCtrl_GestureState.cpp
src/controls/FWebCtrl_WebImpl.cpp

index c17df52..93419bd 100755 (executable)
@@ -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)
index a3221c6..e2ce55c 100755 (executable)
@@ -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);
        }