From: Hyun Lee Date: Thu, 11 Apr 2013 12:05:15 +0000 (+0900) Subject: Fix for multi touch issue X-Git-Tag: 2.1b_release~32 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e44b443d322f9d8b0570aeae4eb42e421089a1bc;p=framework%2Fosp%2Fweb.git Fix for multi touch issue Change-Id: I9023eaf973658f5641d65572cc64a0d97a082dc6 Signed-off-by: Hyun Lee --- diff --git a/src/controls/FWebCtrl_GestureState.cpp b/src/controls/FWebCtrl_GestureState.cpp index 19bfb84..46c189b 100755 --- a/src/controls/FWebCtrl_GestureState.cpp +++ b/src/controls/FWebCtrl_GestureState.cpp @@ -27,6 +27,7 @@ #include #include #include +#include #include #include "FWebCtrl_GestureState.h" #include "FWebCtrl_Web.h" @@ -388,8 +389,6 @@ _PinchGestureState::OnPinchGestureFinished(_TouchPinchGestureDetector& gesture) SetGestureEvent(gestureEvent, EWK_GESTURE_PINCH, Point(0, 0), Point(0, 0), 0.0, 0); pSmartData->api->gesture_end(const_cast(pSmartData), &gestureEvent); - __pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP); - return true; } @@ -411,6 +410,14 @@ _PinchGestureState::OnTouchMoved(const _Control& source, const _TouchInfo& touch bool _PinchGestureState::OnTouchReleased(const _Control& source, const _TouchInfo& touchInfo) { + _TouchManager* pTouchManager = _TouchManager::GetInstance(); + SysAssertf(pTouchManager, "Failed to get touch manager."); + + if(pTouchManager->GetPointCount() == 0) + { + __pWebCore->ChangeGesture(WEB_GESTURE_TYPE_TAP); + } + return true; }