Skip to content

Commit

Permalink
Add check for labelShouldScroll when turning holdScrolling off.
Browse files Browse the repository at this point in the history
  • Loading branch information
cbpowell committed Dec 18, 2015
1 parent af9dbe0 commit 865131e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion MarqueeLabel.m
Original file line number Diff line number Diff line change
Expand Up @@ -1324,7 +1324,7 @@ - (void)setHoldScrolling:(BOOL)holdScrolling {

_holdScrolling = holdScrolling;

if (!holdScrolling && !(self.awayFromHome || self.labelize || self.tapToScroll)) {
if (!holdScrolling && !(self.awayFromHome || self.labelize || self.tapToScroll) && self.labelShouldScroll) {
[self beginScroll];
}
}
Expand Down

0 comments on commit 865131e

Please sign in to comment.