From 8091817031c02fc6e6be2f2cc9aa7850ce115547 Mon Sep 17 00:00:00 2001 From: Aleksey Belousov Date: Thu, 2 Apr 2020 23:32:11 +0300 Subject: [PATCH] [iOS] expand touch area in elevation profile preview bar https://jira.mail.ru/browse/MAPSME-13529 --- iphone/Chart/Chart/Views/ChartPreviewView.swift | 5 +++++ 1 file changed, 5 insertions(+) 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 {