Skip to content

Commit

Permalink
issues16手势兼容问题修复#16
Browse files Browse the repository at this point in the history
  • Loading branch information
Gdxy committed Mar 16, 2020
1 parent 4c312b9 commit 49b0f58
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,9 @@ - (CGFloat)percentForGesture:(UIPanGestureRecognizer *)gesture

CGFloat percent = 0.f;

if ([gesture isMemberOfClass: [UIScreenEdgePanGestureRecognizer class]]) {
if ([gesture isMemberOfClass: [UIScreenEdgePanGestureRecognizer class]] ||
[gesture isMemberOfClass: NSClassFromString(@"TLScreenEdgePanGestureRecognizer")])
{
if (self.edge == UIRectEdgeRight) {
percent = (width - locationInSourceView.x) / width;

Expand All @@ -76,7 +78,7 @@ - (CGFloat)percentForGesture:(UIPanGestureRecognizer *)gesture
percent = locationInSourceView.x / width;
}

}else {
}else { // 用户自定义收拾

if (self.edge == UIRectEdgeRight) {
percent = (width - locationInSourceView.x) / width;
Expand Down

0 comments on commit 49b0f58

Please sign in to comment.