[NUI] Modify the return value of OnAccessibilityPan().
authorjoogab.yun <joogab.yun@samsung.com>
Wed, 21 Sep 2022 06:28:17 +0000 (15:28 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 21 Sep 2022 07:24:19 +0000 (16:24 +0900)
When return true, panGesture is consumed.
When return false, panGestureEvent is propagated to the parent.

src/Tizen.NUI.Components/Controls/ScrollableBase.cs

index cc3e317..cd45cfe 100755 (executable)
@@ -1380,13 +1380,7 @@ namespace Tizen.NUI.Components
 
         internal override bool OnAccessibilityPan(PanGesture gestures)
         {
-            if (SnapToPage && scrollAnimation != null && scrollAnimation.State == Animation.States.Playing)
-            {
-                return false;
-            }
-
-            OnPanGesture(gestures);
-            return true;
+            return OnPanGesture(gestures);
         }
 
         private float CustomScrollAlphaFunction(float progress)