Revision: 9432
http://sourceforge.net/p/skim-app/code/9432
Author: hofman
Date: 2017-10-21 13:43:12 +0000 (Sat, 21 Oct 2017)
Log Message:
-----------
scroll rect to visible for forward search instead of goToDestination
Modified Paths:
--------------
trunk/SKPDFView.m
Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m 2017-10-12 09:58:09 UTC (rev 9431)
+++ trunk/SKPDFView.m 2017-10-21 13:43:12 UTC (rev 9432)
@@ -2258,8 +2258,8 @@
rect.origin.x = floor( point.x - 0.5 *
NSWidth(visibleRect) );
rect.size.width = NSWidth(visibleRect);
}
- p = [self convertPoint:SKTopLeftPoint([self convertRect:rect
fromPage:page]) toPage:page];
- [self goToDestination:[[[PDFDestination alloc] initWithPage:page
atPoint:p] autorelease]];
+ rect = [self convertRect:[self convertRect:rect fromPage:page]
toView:[self documentView]];
+ [[self documentView] scrollRectToVisible:rect];
}
[syncDot invalidate];
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit