Skip to content

Commit

Permalink
Fixed issue when animation deactivated
Browse files Browse the repository at this point in the history
See issue Boris-Em#61.
- Fixed issue with animation deactivated and always display dots.
- Fixed issue with animation deactivated and reference lines.
  • Loading branch information
Boris-Em committed Aug 21, 2014
1 parent da1e6d1 commit e25459c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Classes/BEMLine.m
Original file line number Diff line number Diff line change
Expand Up @@ -156,8 +156,8 @@ - (void)drawRect:(CGRect)rect {
[line strokeWithBlendMode:kCGBlendModeNormal alpha:self.lineAlpha];

if (self.enableRefrenceLines == YES) {
[referenceLinesPath setLineWidth:self.lineWidth];
[referenceLinesPath strokeWithBlendMode:kCGBlendModeNormal alpha:1.0];
[referenceLinesPath setLineWidth:self.lineWidth/2];
[referenceLinesPath strokeWithBlendMode:kCGBlendModeNormal alpha:self.lineAlpha/2];
}
} else {
CAShapeLayer *pathLayer = [CAShapeLayer layer];
Expand Down
2 changes: 1 addition & 1 deletion Classes/BEMSimpleLineGraphView.m
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ - (void)drawDots {
if (self.animationGraphEntranceTime == 0) {
if (self.alwaysDisplayDots == NO) {
circleDot.alpha = 0;
}
} else circleDot.alpha = 0.7;
} else {
[UIView animateWithDuration:(float)self.animationGraphEntranceTime/numberOfPoints delay:(float)i*((float)self.animationGraphEntranceTime/numberOfPoints) options:UIViewAnimationOptionCurveLinear animations:^{
circleDot.alpha = 0.7;
Expand Down
Binary file not shown.

0 comments on commit e25459c

Please sign in to comment.