Skip to content

Commit

Permalink
Increase velocity at which deceleration is stopped
Browse files Browse the repository at this point in the history
  • Loading branch information
krisanthony committed Feb 6, 2020
1 parent 5aa992a commit 8ef2368
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Charts/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit 8ef2368

Please sign in to comment.