Skip to content

Commit

Permalink
[NUI] Fix not to propagate gesture from scrim
Browse files Browse the repository at this point in the history
Scrim should block all touch and gesture events.
Therefore, gesture is also not propagated from scrim.
  • Loading branch information
Jaehyun-Cho committed Jul 11, 2023
1 parent 1b041bd commit 7d4ee41
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Tizen.NUI.Components/Controls/Menu.cs
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,7 @@ private View CreateDefaultScrim()
ExcludeLayouting = true,
BackgroundColor = Color.Transparent,
Size = new Size(NUIApplication.GetDefaultWindow().Size),
DispatchParentGestureEvents = false,
};

scrim.TouchEvent += (object source, TouchEventArgs e) =>
Expand Down
1 change: 1 addition & 0 deletions src/Tizen.NUI.Components/Controls/Navigation/DialogPage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -325,6 +325,7 @@ private View CreateDefaultScrim()
}
return true;
};
scrim.DispatchParentGestureEvents = false;

return scrim;
}
Expand Down

0 comments on commit 7d4ee41

Please sign in to comment.