modify to calculate longpress time
authorminkyu kim <imetjade.kim@samsung.com>
Tue, 2 Apr 2013 02:13:36 +0000 (11:13 +0900)
committerminkyu kim <imetjade.kim@samsung.com>
Tue, 2 Apr 2013 02:13:36 +0000 (11:13 +0900)
Change-Id: I18bcc855ea71015fdcf68849ce8a8103206a97ba

src/ui/FUi_ControlManager.cpp
src/ui/FUi_TouchLongPressGestureDetector.cpp

index 3744d22..d4be148 100644 (file)
@@ -1452,7 +1452,7 @@ _ControlManager::OnSettingChanged(Tizen::Base::String& key)
                IEnumeratorT<_TouchGestureDetector*>* pEnumerator = __pGestureList->GetEnumeratorN();
                SysTryReturnVoidResult(NID_UI, pEnumerator, E_SYSTEM, "[E_SYSTEM] System error occurred.")
 
-               int duration = static_cast<int>(elm_config_longpress_timeout_get());
+               int duration = static_cast<int>(elm_config_longpress_timeout_get() * 1000);
                if (duration == 0)
                {
                        duration = 500;
index 9723146..fbe9b34 100644 (file)
@@ -67,7 +67,7 @@ _TouchLongPressGestureDetector::_TouchLongPressGestureDetector(void)
        __pLongPressInfoList = new (std::nothrow) ArrayListT<_LongPressInfo*>;
        SysTryReturnVoidResult(NID_UI, __pLongPressInfoList, E_OUT_OF_MEMORY, "[E_OUT_OF_MEMORY] Memory allocation failed.");
 
-       int __duration = static_cast<int>(elm_config_longpress_timeout_get());
+       int __duration = static_cast<int>(elm_config_longpress_timeout_get() * 1000);
        if (__duration == 0)
        {
                __duration = 500;