[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:55:43 CET 2012


vlc | branch: master | Felix Paul Kühne <fkuehne at videolan.org> | Sun Feb 26 22:55:32 2012 +0100| [86572c9fec46e3f4ea530e0ed1f0471eed66c735] | 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

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=86572c9fec46e3f4ea530e0ed1f0471eed66c735
---

 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 0779283..757c96b 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