[NUI] Fix not to propagate gesture from scrim
authorJaehyun Cho <jae_hyun.cho@samsung.com>
Mon, 10 Jul 2023 07:53:15 +0000 (16:53 +0900)
committerhuiyu <35286162+huiyueun@users.noreply.github.com>
Tue, 11 Jul 2023 05:46:11 +0000 (14:46 +0900)
Scrim should block all touch and gesture events.
Therefore, gesture is also not propagated from scrim.

src/Tizen.NUI.Components/Controls/Menu.cs
src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs

index 4b129bd..6677af4 100755 (executable)
@@ -529,6 +529,7 @@ namespace Tizen.NUI.Components
                 ExcludeLayouting = true,
                 BackgroundColor = Color.Transparent,
                 Size = new Size(NUIApplication.GetDefaultWindow().Size),
+                DispatchParentGestureEvents = false,
             };
 
             scrim.TouchEvent += (object source, TouchEventArgs e) =>
index 5931fab..1df0542 100755 (executable)
@@ -325,6 +325,7 @@ namespace Tizen.NUI.Components
                 }
                 return true;
             };
+            scrim.DispatchParentGestureEvents = false;
 
             return scrim;
         }