Skip to content

Commit

Permalink
Halved gapBetweenThumbs value, in order to allow for selection of sma…
Browse files Browse the repository at this point in the history
…ller ranges.
  • Loading branch information
Sundin committed May 19, 2016
1 parent 9c66db3 commit 36c4df8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion RangeSlider/RangeSlider.swift
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class RangeSlider: UIControl {
}

var gapBetweenThumbs: Double {
return Double(thumbWidth)*(maximumValue - minimumValue) / Double(bounds.width)
return 0.5 * Double(thumbWidth) * (maximumValue - minimumValue) / Double(bounds.width)
}

@IBInspectable var trackTintColor = UIColor(white: 0.9, alpha: 1.0) {
Expand Down

0 comments on commit 36c4df8

Please sign in to comment.