Description
Please consider adding a property to adjust the tab-swiping sensitivity in the SfTabView control
My users asked to go back to using the native MAUI tab because when they are scrolling through a list, it accidentally switches screens
Public API Changes
<toolkit:SfTabView Sensitivity="Low">
<toolkit:SfTabItem Header="Consulta" x:Name="PageConsultaClientesTMK">
<viewCli:ConsultaCliente x:Name="ViewCoCli"/>
</toolkit:SfTabItem>
</toolkit:SfTabView>
Intended Use-Case
I would like to be able to configure whether the tab switching is more or less sensitive. Currently, the control is more sensitive than the native MAUI control
The number 5 used to determine the _swipeThreshold in the code below could optionally be made configurable:
double _swipeThreshold => 5 * _density;
The _swipeThreshold is currently utilized in the following method:
internal override bool OnInterceptTouchEvent(MotionEvent? motionEvent)
https://github.com/syncfusion/maui-toolkit/blob/main/maui/src/TabView/Control/HorizontalContent/SfHorizontalContent.Android.cs
Could be changed to this:
public double BaseSwipeThreshold { get; set; } = 5;
double _swipeThreshold => BaseSwipeThreshold * _density;
Description
Please consider adding a property to adjust the tab-swiping sensitivity in the SfTabView control
My users asked to go back to using the native MAUI tab because when they are scrolling through a list, it accidentally switches screens
Public API Changes
Intended Use-Case
I would like to be able to configure whether the tab switching is more or less sensitive. Currently, the control is more sensitive than the native MAUI control
The number 5 used to determine the _swipeThreshold in the code below could optionally be made configurable:
double _swipeThreshold => 5 * _density;The _swipeThreshold is currently utilized in the following method:
internal override bool OnInterceptTouchEvent(MotionEvent? motionEvent)https://github.com/syncfusion/maui-toolkit/blob/main/maui/src/TabView/Control/HorizontalContent/SfHorizontalContent.Android.cs
Could be changed to this: