minor change
This commit is contained in:
1 parent
c3c7e670fc
commit
f2cf788d86
1 file changed
-2
@@ -39,14 +39,12 @@ static CGFloat EDGE_TOLERANCE_POINTS = 50.0f;
|
|||||||
|
|
||||||
if(self.edges & UIRectEdgeLeft){
|
if(self.edges & UIRectEdgeLeft){
|
||||||
if(_startPointX < EDGE_TOLERANCE_POINTS && normalizedGestureDistance > _normalizedThresholdDistance){
|
if(_startPointX < EDGE_TOLERANCE_POINTS && normalizedGestureDistance > _normalizedThresholdDistance){
|
||||||
self.state = UIGestureRecognizerStateBegan;
|
|
||||||
self.state = UIGestureRecognizerStateEnded;
|
self.state = UIGestureRecognizerStateEnded;
|
||||||
}
|
}
|
||||||
// NSLog(@"_startPointX %f , normalizedGestureDeltaX %f", _startPointX, normalizedGestureDistance);
|
// NSLog(@"_startPointX %f , normalizedGestureDeltaX %f", _startPointX, normalizedGestureDistance);
|
||||||
}
|
}
|
||||||
if(self.edges & UIRectEdgeRight){
|
if(self.edges & UIRectEdgeRight){
|
||||||
if((_startPointX > (screenWidthInPoints - EDGE_TOLERANCE_POINTS)) && normalizedGestureDistance > _normalizedThresholdDistance){
|
if((_startPointX > (screenWidthInPoints - EDGE_TOLERANCE_POINTS)) && normalizedGestureDistance > _normalizedThresholdDistance){
|
||||||
self.state = UIGestureRecognizerStateBegan;
|
|
||||||
self.state = UIGestureRecognizerStateEnded;
|
self.state = UIGestureRecognizerStateEnded;
|
||||||
}
|
}
|
||||||
// NSLog(@"_startPointX %f , normalizedGestureDeltaX %f", _startPointX, normalizedGestureDistance);
|
// NSLog(@"_startPointX %f , normalizedGestureDeltaX %f", _startPointX, normalizedGestureDistance);
|
||||||
|
|||||||
Reference in new issue
Block a user