Skip to content

Commit

Permalink
add call chartScaled() after double tap (#3770)
Browse files Browse the repository at this point in the history
  • Loading branch information
artemiusmk authored and jjatie committed Dec 11, 2018
1 parent 2e2301d commit 0749a2e
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Source/Charts/Charts/BarLineChartViewBase.swift
Original file line number Diff line number Diff line change
Expand Up @@ -573,8 +573,12 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
{
location.y = -(self.bounds.size.height - location.y - _viewPortHandler.offsetBottom)
}

self.zoom(scaleX: isScaleXEnabled ? 1.4 : 1.0, scaleY: isScaleYEnabled ? 1.4 : 1.0, x: location.x, y: location.y)

let scaleX: CGFloat = isScaleXEnabled ? 1.4 : 1.0
let scaleY: CGFloat = isScaleYEnabled ? 1.4 : 1.0

self.zoom(scaleX: scaleX, scaleY: scaleY, x: location.x, y: location.y)
delegate?.chartScaled?(self, scaleX: scaleX, scaleY: scaleY)
}
}
}
Expand Down

0 comments on commit 0749a2e

Please sign in to comment.