Fix for touch event issue
authorhyun lee <hyunn.lee@samsung.com>
Sat, 29 Jun 2013 05:33:44 +0000 (14:33 +0900)
committerhyun lee <hyunn.lee@samsung.com>
Sat, 29 Jun 2013 05:33:44 +0000 (14:33 +0900)
Change-Id: Iff1af2975c533de63234da9022b5d208d38dfe28
Signed-off-by: hyun lee <hyunn.lee@samsung.com>
src/controls/FWebCtrl_GestureState.cpp

index 15a5442..eb47299 100644 (file)
@@ -305,21 +305,6 @@ _FlickGestureState::OnFlickGestureDetected(_TouchFlickGestureDetector& gesture)
 bool
 _FlickGestureState::OnTouchPressed(const _Control& source, const _TouchInfo& touchInfo)
 {
-       const Ewk_View_Smart_Data* pSmartData = static_cast<Ewk_View_Smart_Data*>(evas_object_smart_data_get( __pWebCore->GetWebNativeNode()));
-       SysAssertf(pSmartData, "Failed to get webkit smart data.");
-
-       Ewk_Event_Gesture gestureEvent;
-
-       Point absPoint(_CoordinateSystemUtils::ConvertToInteger(__pWebCore->GetAbsoluteCoordinate(touchInfo.GetCurrentPosition())));
-
-       SetGestureEvent(gestureEvent, EWK_GESTURE_PAN, absPoint, Point(0, 0), 0.0, 0);
-       pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
-
-       SetGestureEvent(gestureEvent, EWK_GESTURE_FLICK, Point(0, 0), Point(0, 0), 0.0, 0);
-       pSmartData->api->gesture_end(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
-
-       __pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
-
        return true;
 }
 
@@ -344,6 +329,8 @@ _FlickGestureState::OnTouchReleased(const _Control& source, const _TouchInfo& to
        SetGestureEvent(gestureEvent, EWK_GESTURE_FLICK, absPoint, __velocity, 0, 0);
        pSmartData->api->gesture_start(const_cast<Ewk_View_Smart_Data*>(pSmartData), &gestureEvent);
 
+       __pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP);
+
        return true;
 }