Skip to content

Commit

Permalink
Fix bug - don't update the delegate if the handles are not selected. …
Browse files Browse the repository at this point in the history
…Note if you relied on behaivour of the delegates being notified even when updated by code, this was unintentional and will no longer happen and will be a breaking change for you. The Delegates will only be updated as a result of user interaction
  • Loading branch information
TomThorpe committed Jul 20, 2015
1 parent 9d2cddb commit f17eccb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Pod/Classes/TTRangeSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ - (void)refresh {
[self updateLabelValues];

//update the delegate
if (self.delegate){
if (self.delegate && (self.leftHandleSelected || self.rightHandleSelected)){
[self.delegate rangeSlider:self didChangeSelectedMinimumValue:self.selectedMinimum andMaximumValue:self.selectedMaximum];
}
}
Expand Down

0 comments on commit f17eccb

Please sign in to comment.