fix touchPressThresHold logic
authorminkyu kim <imetjade.kim@samsung.com>
Tue, 18 Jun 2013 09:33:03 +0000 (18:33 +0900)
committerminkyu kim <imetjade.kim@samsung.com>
Tue, 18 Jun 2013 09:33:03 +0000 (18:33 +0900)
Change-Id: I2271adfb17f2325bd5e92c0d03b3d734e20a68c0

src/ui/FUi_Control.cpp
src/ui/inc/FUi_Control.h

index d757490..2ef302f 100644 (file)
@@ -3918,6 +3918,7 @@ _Control::_Control(void)
        , __pDetectStartedGestureMap(null)
        , __pDelayedTouchInfoList(null)
        , __touchMoveAllowance(3)
+       , __pressThresHold(0.0f)
        , __inputLockRefCount(0)
        , __screenDpi(0)
        , __isSentDelayedEvent(false)
@@ -5047,12 +5048,13 @@ void
 _Control::SetTouchPressThreshold(float distance)
 {
        __touchMoveAllowance = static_cast<int>(distance * __screenDpi);
+       __pressThresHold = distance;
 }
 
 float
 _Control::GetTouchPressThreshold(void) const
 {
-       return static_cast<int>(__touchMoveAllowance /__screenDpi);
+       return __pressThresHold;
 }
 
 int
index 1609eea..e1e18b4 100644 (file)
@@ -695,6 +695,8 @@ private:
        GestureMap* __pDetectStartedGestureMap;
        Tizen::Base::Collection::IListT<_TouchInfo*>* __pDelayedTouchInfoList;
        int __touchMoveAllowance;
+       float __pressThresHold;
+
        int __inputLockRefCount;
        int __screenDpi;
        bool __isSentDelayedEvent;