Revision: 3235
          http://skim-app.svn.sourceforge.net/skim-app/?rev=3235&view=rev
Author:   hofman
Date:     2007-11-22 12:31:53 -0800 (Thu, 22 Nov 2007)

Log Message:
-----------
React only to pressedDown of apple remote. The new code always sends both an up 
and a down event, even if the control does not.

Modified Paths:
--------------
    trunk/SKApplicationController.m

Modified: trunk/SKApplicationController.m
===================================================================
--- trunk/SKApplicationController.m     2007-11-22 19:00:45 UTC (rev 3234)
+++ trunk/SKApplicationController.m     2007-11-22 20:31:53 UTC (rev 3235)
@@ -332,13 +332,11 @@
     id document = [docs count] ? [docs objectAtIndex:0] : nil;
     SKMainWindowController *controller = [document 
respondsToSelector:@selector(mainWindowController)]? [document 
mainWindowController] : nil;
     
-    if (controller == nil)
+    if (controller == nil || pressedDown == NO)
         return;
     
     switch (event) {
         case kRemoteButtonPlus:
-            if (pressedDown == NO)
-                break;
             if (remoteScrolling)
                 [[[controller pdfView] documentView] scrollLineUp];
             else if ([controller isPresentation])
@@ -349,16 +347,12 @@
         case kRemoteButtonMinus:
             if (remoteScrolling)
                 [[[controller pdfView] documentView] scrollLineDown];
-            else if (pressedDown == NO)
-                break;
             if ([controller isPresentation])
                 [controller doZoomToActualSize:nil];
             else
                 [controller doZoomOut:nil];
             break;
         case kRemoteButtonRight_Hold:
-            if (pressedDown == NO)
-                break;
         case kRemoteButtonRight:
             if (remoteScrolling)
                 [[[controller pdfView] documentView] scrollLineRight];
@@ -366,8 +360,6 @@
                 [controller doGoToNextPage:nil];
             break;
         case kRemoteButtonLeft_Hold:
-            if (pressedDown == NO)
-                break;
         case kRemoteButtonLeft:
             if (remoteScrolling)
                 [[[controller pdfView] documentView] scrollLineLeft];


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to