Commit d4f8bdb3 authored by Gleb Pinigin's avatar Gleb Pinigin

Movie view: increase idle timeout for hiding controls(from 2 to 4 seconds)

parent f99349af
......@@ -388,14 +388,14 @@
- (void)_resetIdleTimer
{
if (!_idleTimer)
_idleTimer = [NSTimer scheduledTimerWithTimeInterval:2.
_idleTimer = [NSTimer scheduledTimerWithTimeInterval:4.
target:self
selector:@selector(idleTimerExceeded)
userInfo:nil
repeats:NO];
else {
if (fabs([_idleTimer.fireDate timeIntervalSinceNow]) < 2.)
[_idleTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:2.]];
if (fabs([_idleTimer.fireDate timeIntervalSinceNow]) < 4.)
[_idleTimer setFireDate:[NSDate dateWithTimeIntervalSinceNow:4.]];
}
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment