Skip to content

Commit

Permalink
fix issue eliotfowler#19
Browse files Browse the repository at this point in the history
  • Loading branch information
ciotto committed Apr 1, 2014
1 parent 03db0fe commit d0b5722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion EFCircularSlider/EFCircularSlider.m
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ -(void)endTrackingWithTouch:(UITouch *)touch withEvent:(UIEvent *)event{
if(_snapToLabels && labelsEvenSpacing != nil) {
CGFloat newAngle=0;
float minDist = 360;
for (int i=0; i<[labelsEvenSpacing count]; i++) {
for (int i=0; i<[labelsEvenSpacing count]+1; i++) {
CGFloat percentageAlongCircle = i/(float)[labelsEvenSpacing count];
CGFloat degreesForLabel = percentageAlongCircle * 360;
if(abs(fixedAngle - degreesForLabel) < minDist) {
Expand Down

0 comments on commit d0b5722

Please sign in to comment.