Skip to content

Commit

Permalink
fix when digit number cause the tableview can not scroll.
Browse files Browse the repository at this point in the history
  • Loading branch information
HeathWang committed Aug 16, 2021
1 parent 0610192 commit 90534cc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion HWPanModal.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'HWPanModal'
s.version = '0.8.7'
s.version = '0.8.8'
s.summary = 'HWPanModal is used to present controller and drag to dismiss.'

# This description is used to generate tags and improve search results.
Expand Down
2 changes: 1 addition & 1 deletion Sources/Controller/HWPanModalPresentationController.m
Original file line number Diff line number Diff line change
Expand Up @@ -466,7 +466,7 @@ - (BOOL)isPresentedViewAnchored {
return YES;
}

if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && CGRectGetMinY(self.presentedView.frame) <= self.handler.anchoredYPosition) {
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))) {
return YES;
}
return NO;
Expand Down
2 changes: 1 addition & 1 deletion Sources/View/PanModal/HWPanModalContainerView.m
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ - (BOOL)isPresentedViewAnchored {
return YES;
}

if (!self.isPresentedViewAnimating && self.handler.extendsPanScrolling && CGRectGetMinY(self.panContainerView.frame) <= self.handler.anchoredYPosition) {
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))) {
return YES;
}
return NO;
Expand Down

0 comments on commit 90534cc

Please sign in to comment.