Fixing the Jira issue N_SE-46155.
authorkishorekumar Dachinamoorthy <kishore.d@samsung.com>
Mon, 15 Jul 2013 05:59:10 +0000 (11:29 +0530)
committerkishorekumar Dachinamoorthy <kishore.d@samsung.com>
Mon, 15 Jul 2013 06:14:24 +0000 (11:44 +0530)
Signed-off-by: kishorekumar Dachinamoorthy <kishore.d@samsung.com>
Change-Id: I01b23170658134040d14e4f7628dee52fd13d52f

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

index 2e589c8..8518e71 100644 (file)
@@ -25,6 +25,7 @@
 #include <FBaseErrorDefine.h>
 #include <FGrp_BitmapImpl.h>
 #include "FUi_ResourceManager.h"
+#include "FUi_TouchManager.h"
 #include "FUi_AccessibilityContainer.h"
 #include "FUi_AccessibilityElement.h"
 #include "FUiAnim_VisualElement.h"
@@ -969,6 +970,18 @@ _Slider::OnFontInfoRequested(unsigned long& style, float& size)
 }
 
 void
+_Slider::OnAncestorVisibleStateChanged(const _Control& control)
+{
+       _TouchManager* pTouchMgr = _TouchManager::GetInstance();
+       if (pTouchMgr && (IsVisible() == false))
+       {
+               pTouchMgr->SetTouchCanceled(null);
+       }
+
+       return;
+}
+
+void
 _Slider::OnAncestorEnableStateChanged(const _Control& control)
 {
        __pSliderPresenter->OnAncestorEnableStateChanged(control);
index 0345aad..67a7a30 100644 (file)
@@ -146,6 +146,7 @@ public:
        virtual void OnFontChanged(Tizen::Graphics::Font* pFont);
        virtual void OnFontInfoRequested(unsigned long& style, float& size);
        virtual void OnAncestorEnableStateChanged(const _Control& control);
+       virtual void OnAncestorVisibleStateChanged(const _Control& control);
 
        // accessibility listener
        virtual bool OnAccessibilityFocusMovedNext(const Tizen::Ui::_AccessibilityContainer& control, const Tizen::Ui::_AccessibilityElement& element){return false;}