From 8ef2368c7932245f35d1c1c67164d1c94600c7cd Mon Sep 17 00:00:00 2001 From: Kris Rudolph Date: Thu, 6 Feb 2020 12:39:36 -0800 Subject: [PATCH] Increase velocity at which deceleration is stopped --- Source/Charts/Charts/BarLineChartViewBase.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Charts/Charts/BarLineChartViewBase.swift b/Source/Charts/Charts/BarLineChartViewBase.swift index 8b8062c4e9..a4cde43456 100644 --- a/Source/Charts/Charts/BarLineChartViewBase.swift +++ b/Source/Charts/Charts/BarLineChartViewBase.swift @@ -860,7 +860,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD _decelerationLastTime = currentTime - if abs(_decelerationVelocity.x) < 0.001 && abs(_decelerationVelocity.y) < 0.001 + if abs(_decelerationVelocity.x) < 1 && abs(_decelerationVelocity.y) < 1 { stopDeceleration()