File tree 1 file changed +6
-2
lines changed
1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,8 @@ final class RideauHostingView: RideauTouchThroughView {
106
106
107
107
private var isInteracting : Bool = false
108
108
109
+ private var isTerminated : Bool = false
110
+
109
111
private var shouldUpdateLayout : Bool = false
110
112
111
113
private var oldValueSet : CachedValueSet ?
@@ -419,6 +421,7 @@ final class RideauHostingView: RideauTouchThroughView {
419
421
}
420
422
421
423
@objc private dynamic func handlePan( gesture: UIPanGestureRecognizer ) {
424
+ guard self . isTerminated == false else { return }
422
425
423
426
func currentHidingOffset( ) -> CGFloat {
424
427
@@ -837,7 +840,9 @@ final class RideauHostingView: RideauTouchThroughView {
837
840
}
838
841
)
839
842
840
- isInteracting = false
843
+ if target. source == . hidden {
844
+ self . isTerminated = true
845
+ }
841
846
}
842
847
default :
843
848
break
@@ -877,7 +882,6 @@ final class RideauHostingView: RideauTouchThroughView {
877
882
delegate? . rideauView ( self . parentView!, willMoveTo: target. source)
878
883
handlers. willMoveTo ? ( target. source)
879
884
}
880
-
881
885
}
882
886
883
887
assert ( currentSnapPoint != nil )
You can’t perform that action at this time.
0 commit comments