Fixed: allowFadingOut side effect introduced by #2718 (#2768)

This commit is contained in:
Didier Korthoudt authored and Martin Carlberg committed 2018-08-29 11:27:50 +02:00
1 parent c0ee5f6563
commit 988b3d27b8
1 file changed
+2 -1
+2 -1
View File
@@ -226,6 +226,7 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
if (_style === CPScrollerStyleLegacy)
{
_allowFadingOut = NO;
[self fadeIn];
[self setThemeState:CPThemeStateScrollViewLegacy];
}
@@ -758,7 +759,7 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
if ([self isHidden] || ![self isEnabled] || !_isMouseOver)
return;
_allowFadingOut = YES;
_allowFadingOut = (_style !== CPScrollerStyleLegacy);
_isMouseOver = NO;
if (_timerFadeOut)