Clean up ahead of PR.

pull/1/head
Matthew Chen 6 years ago
parent 794241963e
commit b8775006bb

@ -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
} }

@ -293,9 +293,6 @@ public class ImageEditorView: UIView, ImageEditorModelDelegate {
// at "point=pixel" scale. // at "point=pixel" scale.
layer.contentsScale = 1.0 layer.contentsScale = 1.0
// TODO:
Logger.verbose("layer.contentsScale: \(layer.contentsScale)")
layer.render(in: context) layer.render(in: context)
} }

Loading…
Cancel
Save