Commit 86572c9f authored by Felix Paul Kühne's avatar Felix Paul Kühne

macosx: slow down the forward/backward buttons a bit (close #6135)

continous button action skips 1 minute within 5 secs now, which matches iTunes

note that iTunes gets faster if you press the button longer, which is something we might want to do as well
parent 4e7ebf8d
......@@ -524,10 +524,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
else
{
if (([NSDate timeIntervalSinceReferenceDate] - last_fwd_event) > 0.12 )
if (([NSDate timeIntervalSinceReferenceDate] - last_fwd_event) > 0.16 )
{
// we just skipped 3 "continous" events, otherwise we are too fast
[[VLCCoreInteraction sharedInstance] backward];
// we just skipped 4 "continous" events, otherwise we are too fast
[[VLCCoreInteraction sharedInstance] backwardExtraShort];
last_bwd_event = [NSDate timeIntervalSinceReferenceDate];
[self performSelector:@selector(resetBackwardSkip)
withObject: NULL
......@@ -563,10 +563,10 @@ static VLCMainWindow *_o_sharedInstance = nil;
}
else
{
if (([NSDate timeIntervalSinceReferenceDate] - last_fwd_event) > 0.12 )
if (([NSDate timeIntervalSinceReferenceDate] - last_fwd_event) > 0.16 )
{
// we just skipped 3 "continous" events, otherwise we are too fast
[[VLCCoreInteraction sharedInstance] forward];
// we just skipped 4 "continous" events, otherwise we are too fast
[[VLCCoreInteraction sharedInstance] forwardExtraShort];
last_fwd_event = [NSDate timeIntervalSinceReferenceDate];
[self performSelector:@selector(resetForwardSkip)
withObject: NULL
......
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