Revision: 5011
          http://skim-app.svn.sourceforge.net/skim-app/?rev=5011&view=rev
Author:   hofman
Date:     2008-11-28 23:38:01 +0000 (Fri, 28 Nov 2008)

Log Message:
-----------
Disable gestures in presentation mode

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2008-11-28 18:40:24 UTC (rev 5010)
+++ trunk/SKPDFView.m   2008-11-28 23:38:01 UTC (rev 5011)
@@ -1524,6 +1524,8 @@
 }
 
 - (void)rotateWithEvent:(NSEvent *)theEvent {
+    if (interactionMode == SKPresentationMode)
+        return;
     if ([theEvent respondsToSelector:@selector(rotation)])
         gestureRotation -= [theEvent rotation];
     if (fabsf(gestureRotation) > 45.0 && gesturePageIndex != NSNotFound) {
@@ -1532,6 +1534,11 @@
     }
 }
 
+- (void)magnifyWithEvent:(NSEvent *)theEvent {
+    if (interactionMode != SKPresentationMode && [[SKPDFView superclass] 
instancesRespondToSelector:_cmd])
+        [super magnifyWithEvent:theEvent];
+}
+
 - (void)checkSpellingStartingAtIndex:(int)anIndex onPage:(PDFPage *)page {
     unsigned int i, first = [page pageIndex];
     unsigned int count = [[self document] pageCount];


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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit

Reply via email to