[NUI] Change clipping mode of ScrollableBase (#2358)
authorbshsqa <32317749+bshsqa@users.noreply.github.com>
Wed, 9 Dec 2020 06:39:08 +0000 (15:39 +0900)
committerGitHub <noreply@github.com>
Wed, 9 Dec 2020 06:39:08 +0000 (15:39 +0900)
- ClipChildren clipping mode uses stencil buffer.
 - But, scrollableBase is always pretended as rectangular shape so we can change it to ClipToBoundingBox that uses scissor.
 - Usually, Scissor is better than stencil buffer for the performance.

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

index d5e8440..d57333a 100755 (executable)
@@ -667,7 +667,7 @@ namespace Tizen.NUI.Components
             mPanGestureDetector.AddDirection(PanGestureDetector.DirectionVertical);
             mPanGestureDetector.Detected += OnPanGestureDetected;
 
-            ClippingMode = ClippingModeType.ClipChildren;
+            ClippingMode = ClippingModeType.ClipToBoundingBox;
 
             //Default Scrolling child
             ContentContainer = new View()