[vlc-commits] macosx: slow down the forward/backward buttons a bit (close #6135)

Felix Paul Kühne git at videolan.org
Sun Feb 26 22:56:12 CET 2012


vlc/vlc-2.0 | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 26 22:55:32 2012 +0100| [92c1262a82998e8263093b28ccba5751fa6c4e7b] | committer: 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
(cherry picked from commit 86572c9fec46e3f4ea530e0ed1f0471eed66c735)

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.0.git/?a=commit;h=92c1262a82998e8263093b28ccba5751fa6c4e7b
---

 modules/gui/macosx/MainWindow.m |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/modules/gui/macosx/MainWindow.m b/modules/gui/macosx/MainWindow.m
index 4bedaf8..e82fea3 100644
--- a/modules/gui/macosx/MainWindow.m
+++ b/modules/gui/macosx/MainWindow.m
@@ -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



More information about the vlc-commits mailing list