Skip to content

Commit 0749a2e

Browse files
artemiusmkjjatie
authored andcommitted
add call chartScaled() after double tap (#3770)
1 parent 2e2301d commit 0749a2e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

Source/Charts/Charts/BarLineChartViewBase.swift

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -573,8 +573,12 @@ open class BarLineChartViewBase: ChartViewBase, BarLineScatterCandleBubbleChartD
573573
{
574574
location.y = -(self.bounds.size.height - location.y - _viewPortHandler.offsetBottom)
575575
}
576-
577-
self.zoom(scaleX: isScaleXEnabled ? 1.4 : 1.0, scaleY: isScaleYEnabled ? 1.4 : 1.0, x: location.x, y: location.y)
576+
577+
let scaleX: CGFloat = isScaleXEnabled ? 1.4 : 1.0
578+
let scaleY: CGFloat = isScaleYEnabled ? 1.4 : 1.0
579+
580+
self.zoom(scaleX: scaleX, scaleY: scaleY, x: location.x, y: location.y)
581+
delegate?.chartScaled?(self, scaleX: scaleX, scaleY: scaleY)
578582
}
579583
}
580584
}

0 commit comments

Comments
 (0)