Skip to content

Commit

Permalink
Merge pull request #3804 from anton-filimonov/bugfixes/scrolling_fixes
Browse files Browse the repository at this point in the history
Fix condition that is checked before `chartTranslated` delegate method call
  • Loading branch information
liuxuan30 authored Jan 14, 2019
2 parents 0749a2e + 7d2e2db commit bd3d1eb
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 @@ -816,7 +816,7 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD

matrix = _viewPortHandler.refresh(newMatrix: matrix, chart: self, invalidate: true)

if delegate !== nil
if matrix != originalMatrix
{
delegate?.chartTranslated?(self, dX: translation.x, dY: translation.y)
}
Expand Down

0 comments on commit bd3d1eb

Please sign in to comment.