Skip to content

Commit 90534cc

Browse files
committed
fix when digit number cause the tableview can not scroll.
1 parent 0610192 commit 90534cc

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

HWPanModal.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
Pod::Spec.new do |s|
1010
s.name = 'HWPanModal'
11-
s.version = '0.8.7'
11+
s.version = '0.8.8'
1212
s.summary = 'HWPanModal is used to present controller and drag to dismiss.'
1313

1414
# This description is used to generate tags and improve search results.

Sources/Controller/HWPanModalPresentationController.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -466,7 +466,7 @@ - (BOOL)isPresentedViewAnchored {
466466
return YES;
467467
}
468468

469-
if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && CGRectGetMinY(self.presentedView.frame) <= self.handler.anchoredYPosition) {
469+
if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && (CGRectGetMinY(self.presentedView.frame) <= self.handler.anchoredYPosition || HW_TWO_FLOAT_IS_EQUAL(CGRectGetMinY(self.presentedView.frame), self.handler.anchoredYPosition))) {
470470
return YES;
471471
}
472472
return NO;

Sources/View/PanModal/HWPanModalContainerView.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ - (BOOL)isPresentedViewAnchored {
399399
return YES;
400400
}
401401

402-
if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && CGRectGetMinY(self.panContainerView.frame) <= self.handler.anchoredYPosition) {
402+
if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && (CGRectGetMinY(self.panContainerView.frame) <= self.handler.anchoredYPosition || HW_TWO_FLOAT_IS_EQUAL(CGRectGetMinY(self.panContainerView.frame), self.handler.anchoredYPosition))) {
403403
return YES;
404404
}
405405
return NO;

0 commit comments

Comments
 (0)