diff --git a/iphone/Chart/Chart/Views/ChartPreviewView.swift b/iphone/Chart/Chart/Views/ChartPreviewView.swift index ffd1f81d34..c27b73f1ec 100644 --- a/iphone/Chart/Chart/Views/ChartPreviewView.swift +++ b/iphone/Chart/Chart/Views/ChartPreviewView.swift @@ -58,6 +58,11 @@ class ViewPortView: UIView { result.usesEvenOddFillRule = true return result } + + override func point(inside point: CGPoint, with event: UIEvent?) -> Bool { + let rect = bounds.insetBy(dx: -30, dy: 0) + return rect.contains(point) + } } class ChartPreviewView: UIView {