From 7d268c1a0e63792b3009df96748379dd584a0e12 Mon Sep 17 00:00:00 2001 From: neostom432 <31119276+neostom432@users.noreply.github.com> Date: Wed, 22 Apr 2020 13:02:14 +0900 Subject: [PATCH] [NUI] Consume Touch/Hover when popup is posted (#1549) Popup should be always on top of layer when popup is posted. And should consume all touch,hover because it is on top. Set Touch/Hover consume to true. --- src/Tizen.NUI.Components/Controls/Popup.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Tizen.NUI.Components/Controls/Popup.cs b/src/Tizen.NUI.Components/Controls/Popup.cs index 0ac8c8a..ebba0fa 100755 --- a/src/Tizen.NUI.Components/Controls/Popup.cs +++ b/src/Tizen.NUI.Components/Controls/Popup.cs @@ -200,7 +200,6 @@ namespace Tizen.NUI.Components private ButtonGroup btGroup = null; private Window window = null; private Layer container = new Layer(); - private PanGestureDetector detector = new PanGestureDetector(); static Popup() { } /// @@ -734,8 +733,10 @@ namespace Tizen.NUI.Components private void Initialize() { - detector.Attach(this); container.Add(this); + container.SetTouchConsumed(true); + container.SetHoverConsumed(true); + LeaveRequired = true; PropertyChanged += PopupStylePropertyChanged; -- 2.7.4