mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-10-20 23:35:01 +00:00
fix visual glitch when scroller are hidden and overed
This commit is contained in:
1 parent
86f01cfaec
commit
e3565bdc7d
1 file changed
+9
@@ -732,6 +732,9 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
|
||||
if (_timerFadeOut)
|
||||
[_timerFadeOut invalidate];
|
||||
|
||||
if (![self isEnabled])
|
||||
return;
|
||||
|
||||
_allowFadingOut = NO;
|
||||
[self fadeIn];
|
||||
[self setThemeState:CPThemeStateSelected];
|
||||
@@ -739,6 +742,12 @@ CPThemeStateScrollerKnobDark = CPThemeState("scroller-knob-dark");
|
||||
|
||||
- (void)mouseExited:(CPEvent)anEvent
|
||||
{
|
||||
if ([self isHidden])
|
||||
return;
|
||||
|
||||
if (![self isEnabled])
|
||||
return;
|
||||
|
||||
_allowFadingOut = YES;
|
||||
|
||||
if (_timerFadeOut)
|
||||
|
||||
Reference in new issue
Block a user