Skip to content

Commit

Permalink
Fix PanBlockGestureRecognizer
Browse files Browse the repository at this point in the history
  • Loading branch information
tamanyan committed Nov 8, 2017
1 parent d0bd134 commit f4947f1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Sources/Util/PanBlockGestureRecognizer.swift
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ class PanBlockGestureRecognizer: UIPanGestureRecognizer {

if absY < permissionVertical && absX > swipeStroke {
panGesture.setValue(UIGestureRecognizerState.cancelled.rawValue, forKey: "state")
self.isEnded = true
// self.isEnded = true
} else if absY > permissionVertical {
self.isEnded = true
panGesture.setValue(UIGestureRecognizerState.ended.rawValue, forKey: "state")
// panGesture.setValue(UIGestureRecognizerState.ended.rawValue, forKey: "state")
}
}
}
Expand Down

0 comments on commit f4947f1

Please sign in to comment.