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 Mar 30, 2014
1 parent 9bdebb7 commit 4236cf0
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 4236cf0

Please sign in to comment.