|
|
@ -127,6 +127,7 @@ class ImageEditorGestureRecognizer: UIGestureRecognizer {
|
|
|
|
return isNewTouch ? .invalid : .outside
|
|
|
|
return isNewTouch ? .invalid : .outside
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if isNewTouch {
|
|
|
|
// Ignore touches that start near the top or bottom edge of the screen;
|
|
|
|
// Ignore touches that start near the top or bottom edge of the screen;
|
|
|
|
// they may be a system edge swipe gesture.
|
|
|
|
// they may be a system edge swipe gesture.
|
|
|
|
let rootView = self.rootView(of: view)
|
|
|
|
let rootView = self.rootView(of: view)
|
|
|
@ -138,6 +139,7 @@ class ImageEditorGestureRecognizer: UIGestureRecognizer {
|
|
|
|
if (distanceToNearestEdge < kSystemEdgeSwipeTolerance) {
|
|
|
|
if (distanceToNearestEdge < kSystemEdgeSwipeTolerance) {
|
|
|
|
return .invalid
|
|
|
|
return .invalid
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
return .valid
|
|
|
|
return .valid
|
|
|
|
}
|
|
|
|
}
|
|
|
|