From 3fe5fb487f0af526f1614e450c1ca246207aeca8 Mon Sep 17 00:00:00 2001 From: Muin Momin Date: Fri, 28 Aug 2020 16:44:42 -0500 Subject: [PATCH] Reduce gesture start time --- Source/Charts/Charts/BarLineChartViewBase.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Source/Charts/Charts/BarLineChartViewBase.swift b/Source/Charts/Charts/BarLineChartViewBase.swift index 668673fa2b..366f65ad0a 100644 --- a/Source/Charts/Charts/BarLineChartViewBase.swift +++ b/Source/Charts/Charts/BarLineChartViewBase.swift @@ -127,6 +127,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD _doubleTapGestureRecognizer = NSUITapGestureRecognizer(target: self, action: #selector(doubleTapGestureRecognized(_:))) _doubleTapGestureRecognizer.nsuiNumberOfTapsRequired = 2 _panGestureRecognizer = NSUILongPressGestureRecognizer(target: self, action: #selector(panGestureRecognized(_:))) + _panGestureRecognizer.minimumPressDuration = 0.2 _panGestureRecognizer.delegate = self