Skip to content

Commit

Permalink
Merge pull request #44 from hprobotic/master
Browse files Browse the repository at this point in the history
Update Chart.swift
  • Loading branch information
gpbl authored Nov 9, 2016
2 parents ba86ead + e3c7438 commit 0ea27f7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Chart.swift
Original file line number Diff line number Diff line change
Expand Up @@ -674,7 +674,7 @@ open class Chart: UIControl {
let left = point.location(in: self).x
let x = valueFromPointAtX(left)

if left < 0 || left > drawingWidth {
if left < 0 || left > (drawingWidth as CGFloat) {
// Remove highlight line at the end of the touch event
if let shapeLayer = highlightShapeLayer {
shapeLayer.path = nil
Expand Down

0 comments on commit 0ea27f7

Please sign in to comment.