Skip to content

Commit ed81731

Browse files
Remove Pressure Effect in Segmented Control
1 parent 46000ba commit ed81731

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)