fix flashScrollers doesn't work

This commit is contained in:
Antoine Mercadal
2011-10-25 12:11:11 +02:00
parent 210bb3e5c9
commit 2742e3d77b
+8 -1
View File
@@ -1053,13 +1053,20 @@ var TIMER_INTERVAL = 0.2,
*/
- (void)flashScrollers
{
if (_scrollerStyle == CPScrollerStyleLegacy)
if (_scrollerStyle === CPScrollerStyleLegacy)
return;
if (_hasHorizontalScroller)
{
[_horizontalScroller setHidden:NO];
[_horizontalScroller fadeIn];
}
if (_hasVerticalScroller)
{
[_verticalScroller setHidden:NO];
[_verticalScroller fadeIn];
}
if (_timerScrollersHide)
[_timerScrollersHide invalidate]