Revision: 7415
http://skim-app.svn.sourceforge.net/skim-app/?rev=7415&view=rev
Author: hofman
Date: 2011-08-02 00:15:48 +0000 (Tue, 02 Aug 2011)
Log Message:
-----------
gesture rotate page below mouse
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2011-08-01 23:54:19 UTC (rev 7414)
+++ trunk/SKPDFView.m 2011-08-02 00:15:48 UTC (rev 7415)
@@ -1536,8 +1536,9 @@
- (void)beginGestureWithEvent:(NSEvent *)theEvent {
if ([[SKPDFView superclass] instancesRespondToSelector:_cmd])
[super beginGestureWithEvent:theEvent];
+ PDFPage *page = [self pageForPoint:[self convertPoint:[theEvent
locationInWindow] fromView:nil] nearest:YES];
gestureRotation = 0.0;
- gesturePageIndex = [[self currentPage] pageIndex];
+ gesturePageIndex = [(page ?: [self currentPage]) pageIndex];
}
- (void)endGestureWithEvent:(NSEvent *)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