Skip to content

Commit

Permalink
Merge pull request #30 from jegumhon/patch1
Browse files Browse the repository at this point in the history
fix that the slider shows the right thumb's position incorrectly, whe…
  • Loading branch information
vadymmarkov authored Jan 23, 2017
2 parents 49aba25 + b0a78ac commit c2d38cd
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions Source/MARKRangeSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,13 @@ - (void)setMinValue:(CGFloat)minValue maxValue:(CGFloat)maxValue {
}

- (void)setLeftValue:(CGFloat)leftValue rightValue:(CGFloat)rightValue {
self.rightValue = rightValue;
self.leftValue = leftValue;
if (leftValue == 0 && rightValue == 0) {
self.leftValue = leftValue;
self.rightValue = rightValue;
} else {
self.rightValue = rightValue;
self.leftValue = leftValue;
}
}

#pragma mark - Configuration
Expand Down

0 comments on commit c2d38cd

Please sign in to comment.