Skip to content

Commit a389275

Browse files
committed
Added comment.
1 parent 3bef760 commit a389275

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

maui/src/PullToRefresh/SfPullToRefresh.Android.cs

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

70+
// 998288 - A slight downward movement during a tap is treated as a pull gesture, So add 10px vertical threshold before treating as pull gesture.
7071
if ((currenTouchPoint.Y - this._downY) >= 10 && _downY < currenTouchPoint.Y && !_isChildScrolledVertically)
7172
{
7273
return true;
@@ -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)

0 commit comments

Comments
 (0)