fixed bug (Tap Sound is playing on Flicking PLM : P130516-0645/P130517-2176)
authorChulheon <ch.jeong47@samsung.com>
Mon, 20 May 2013 09:34:13 +0000 (18:34 +0900)
committerChulheon <ch.jeong47@samsung.com>
Mon, 20 May 2013 09:34:13 +0000 (18:34 +0900)
Change-Id: Ia88b85f2d4e711abc77cc9fd96e4fae2e3df09d3

src/ui/controls/FUiCtrl_Edit.cpp
src/ui/inc/FUiCtrl_Edit.h

index 346d4ae..f4ad7f4 100644 (file)
@@ -239,6 +239,7 @@ _Edit::_Edit(void)
        , __isDestroyed(false)
        , __pTextFilter(null)
        , __previousBounds()
+       , __isTouchMoving(false)
 {
        for (int status = 0; status < EDIT_COLOR_MAX; status++)
        {
@@ -1828,16 +1829,20 @@ _Edit::OnTouchCanceled(const _Control& source, const _TouchInfo& touchinfo)
 bool
 _Edit::OnTouchReleased(const _Control& source, const _TouchInfo& touchinfo)
 {
-       if (__editStyle ^ EDIT_STYLE_VIEWER)
+       if ((__editStyle ^ EDIT_STYLE_VIEWER) && !__isTouchMoving)
        {
                PLAY_FEEDBACK(_RESOURCE_FEEDBACK_PATTERN_TAP);
        }
+       __isTouchMoving = false;
+
        return _pEditPresenter->OnTouchReleased(source, touchinfo);
 }
 
 bool
 _Edit::OnTouchMoved(const _Control& source, const _TouchInfo& touchinfo)
 {
+       __isTouchMoving = true;
+
        return _pEditPresenter->OnTouchMoved(source, touchinfo);
 }
 
index e7c5f50..984c02b 100644 (file)
@@ -555,6 +555,7 @@ private:
        bool __isDestroyed;
        IEditTextFilter* __pTextFilter;
        Tizen::Graphics::FloatRectangle __previousBounds;
+       bool __isTouchMoving;
 }; // _Edit
 
 }}} // Tizen::Ui::Controls