Revision: 7413
http://skim-app.svn.sourceforge.net/skim-app/?rev=7413&view=rev
Author: hofman
Date: 2011-08-01 23:30:41 +0000 (Mon, 01 Aug 2011)
Log Message:
-----------
don't override rotateWithEvent on Lion, it implements a nicer animated page
rotation
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-08-01 10:56:47 UTC (rev 7412)
+++ trunk/SKPDFView.m 2011-08-01 23:30:41 UTC (rev 7413)
@@ -1550,11 +1550,15 @@
- (void)rotateWithEvent:(NSEvent *)theEvent {
if (interactionMode == SKPresentationMode)
return;
- if ([theEvent respondsToSelector:@selector(rotation)])
- gestureRotation -= [theEvent rotation];
- if (fabs(gestureRotation) > 45.0 && gesturePageIndex != NSNotFound) {
- [self rotatePageAtIndex:gesturePageIndex by:90.0 *
round(gestureRotation / 90.0)];
- gestureRotation -= 90.0 * round(gestureRotation / 90.0);
+ if (floor(NSAppKitVersionNumber) <= NSAppKitVersionNumber10_6) {
+ if ([theEvent respondsToSelector:@selector(rotation)])
+ gestureRotation -= [theEvent rotation];
+ if (fabs(gestureRotation) > 45.0 && gesturePageIndex != NSNotFound) {
+ [self rotatePageAtIndex:gesturePageIndex by:90.0 *
round(gestureRotation / 90.0)];
+ gestureRotation -= 90.0 * round(gestureRotation / 90.0);
+ }
+ } else if ([[SKPDFView superclass] instancesRespondToSelector:_cmd]) {
+ [super rotateWithEvent:theEvent];
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts.
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit