Skip to content

Commit 760cbb2

Browse files
authored
[iOS] SwipeView: Fix reenabling parent scrolling after cancelled swipe (#23442)
### Description of Change Fixes an issue where scrolling of SwipeView's parent is disabled during swipe but not reenabled when the swipe is cancelled by manually moving the touch below the threshold. ### Issues Fixed Fixes #23441 Fixes #16856
2 parents 89b11fe + 69e8907 commit 760cbb2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/src/Platform/iOS/MauiSwipeView.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -517,7 +517,7 @@ void IsParentScrollEnabled(bool scrollEnabled)
517517
{
518518
var swipeThresholdPercent = MinimumOpenSwipeThresholdPercentage * GetSwipeThreshold();
519519

520-
if (Math.Abs(_swipeOffset) < swipeThresholdPercent)
520+
if (!scrollEnabled && Math.Abs(_swipeOffset) < swipeThresholdPercent)
521521
return;
522522

523523
if (scrollEnabled == _isScrollEnabled)

0 commit comments

Comments
 (0)