[NUI] Adjust ScrollingEventThreshold to cover larger sized ContentContainer. (#2249)
authorbshsqa <32317749+bshsqa@users.noreply.github.com>
Fri, 27 Nov 2020 01:27:58 +0000 (10:27 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Dec 2020 08:56:39 +0000 (17:56 +0900)
- Current default value is 0.00001f and it is too small to track large scale scrolling range.
- This patch updates it to reasonable size and adds guide comment.

Signed-off-by: Seungho Baek <sbsh.baek@samsung.com>
src/Tizen.NUI.Components/Controls/ScrollableBase.cs
test/Tizen.NUI.Samples/Tizen.NUI.Samples/Tizen.NUI.Samples.code-workspace

index a34e72b..80aafae 100755 (executable)
@@ -112,7 +112,7 @@ namespace Tizen.NUI.Components
         private int mScrollDuration = 125;
         private int mPageWidth = 0;
         private float mPageFlickThreshold = 0.4f;
-        private float mScrollingEventThreshold = 0.00001f;
+        private float mScrollingEventThreshold = 0.001f;
 
         private class ScrollableBaseCustomLayout : LayoutGroup
         {
@@ -474,7 +474,10 @@ namespace Tizen.NUI.Components
         public float DecelerationThreshold { get; set; } = 0.1f;
 
         /// <summary>
-        /// Scrolling event will be thrown when this amount of scroll positino is changed.
+        /// Scrolling event will be thrown when this amount of scroll position is changed.
+        /// If this threshold becomes smaller, the tracking detail increases but the scrolling range that can be tracked becomes smaller.
+        /// If large sized ContentContainer is required, please use larger threshold value.
+        /// Default ScrollingEventThreshold value is 0.001f.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
         public float ScrollingEventThreshold
index 97b9e01..7deeaa3 100644 (file)
@@ -5,6 +5,12 @@
                },
                {
                        "path": "../../../src/Tizen.NUI"
+               },
+               {
+                       "path": "../../../src/Tizen.NUI.Components"
+               },
+               {
+                       "path": "../../../../../DALi"
                }
        ],
        "settings": {}