Skip to content

Commit 525c6ba

Browse files
Merge pull request #318 from syncfusion/Task_998288
998288 - Expand collapse of groups fails intermittently when listview is nested inside PullToRefresh on certain Android
2 parents 6c587d5 + b0ed5b3 commit 525c6ba

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

maui/src/PullToRefresh/SfPullToRefresh.Android.cs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,8 @@ bool HandleActionMove(MotionEvent ev, Point currenTouchPoint)
6767
_isChildScrolledVertically = IsChildElementScrolled(PullableContent.GetVisualTreeDescendants().FirstOrDefault(), new Point(ev.RawX / _density, ev.RawY / _density));
6868
}
6969

70-
if (_downY < currenTouchPoint.Y && !_isChildScrolledVertically)
70+
// 998288 - A slight downward movement during a tap is treated as a pull gesture, so add a 10-unit vertical threshold (device-independent units) before treating it as a pull gesture.
71+
if ((currenTouchPoint.Y - this._downY) >= 10 && !_isChildScrolledVertically)
7172
{
7273
return true;
7374
}
@@ -134,10 +135,10 @@ void ConfigTouch()
134135
{
135136
if (Handler is not null && Handler.PlatformView is not null)
136137
{
137-
// When the handler is changed without creating a new virtual view, adding a touch listener will skip attaching touch wiring to the native view.
138-
// This is because the TouchDetector will still remain in the VirtualView and will be wired with the old handler and old native view.
139-
this.RemoveTouchListener(this);
140-
this.AddTouchListener(this);
138+
// When the handler is changed without creating a new virtual view, adding a touch listener will skip attaching touch wiring to the native view.
139+
// This is because the TouchDetector will still remain in the VirtualView and will be wired with the old handler and old native view.
140+
this.RemoveTouchListener(this);
141+
this.AddTouchListener(this);
141142
_nativeView = Handler.PlatformView as LayoutViewGroupExt;
142143

143144
if (_nativeView is not null && _nativeView.Resources is not null && _nativeView.Resources.DisplayMetrics is not null)

pipelines/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ pool:
88
vmImage: 'windows-2022'
99

1010
steps:
11-
# Step 1: Install .NET 9.0 SDK
11+
# Step 1: Install .NET 10.0 SDK
1212
- task: UseDotNet@2
1313
inputs:
1414
packageType: 'sdk'
15-
version: '9.0.x' # Use the latest .NET 9.0 SDK version
15+
version: '10.0.x' # Use the latest .NET 9.0 SDK version
1616
installationPath: $(Agent.ToolsDirectory)/dotnet
1717

1818
# Step 2: Verify .NET SDK Installation

0 commit comments

Comments
 (0)