Skip to content

Commit 6ec32d1

Browse files
Merge pull request #101 from saiganesh-sakthivel/main
Remove Ripple Effect applied when segment item template added
2 parents 46000ba + ed81731 commit 6ec32d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

maui/src/SegmentedControl/Views/SegmentItemView.cs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,10 @@ void ITouchListener.OnTouch(PointerEventArgs e)
875875
{
876876
if (e.Action == PointerActions.Pressed)
877877
{
878-
_effectsView?.ApplyEffects();
878+
if (itemInfo?.SegmentTemplate is null)
879+
{
880+
_effectsView?.ApplyEffects();
881+
}
879882
}
880883
#if __MACCATALYST__ || WINDOWS
881884
else if (e.Action == PointerActions.Entered && e.PointerDeviceType == PointerDeviceType.Mouse)

0 commit comments

Comments
 (0)