Revision: 12826 http://sourceforge.net/p/skim-app/code/12826 Author: hofman Date: 2022-04-06 13:07:53 +0000 (Wed, 06 Apr 2022) Log Message: ----------- use clipview method scrollToPoint:
Modified Paths: -------------- trunk/SKBasePDFView.m Modified: trunk/SKBasePDFView.m =================================================================== --- trunk/SKBasePDFView.m 2022-04-06 12:55:01 UTC (rev 12825) +++ trunk/SKBasePDFView.m 2022-04-06 13:07:53 UTC (rev 12826) @@ -300,7 +300,7 @@ - (void)goToPage:(PDFPage *)page { if (hasHorizontalLayout(self)) { - NSView *clipView = [[self scrollView] contentView]; + NSClipView *clipView = [[self scrollView] contentView]; NSRect bounds = [self convertRect:[self convertRect:[page boundsForBox:[self displayBox]] fromPage:page] toView:clipView]; NSPoint point = NSMakePoint(NSMinX(bounds), NSMinY([clipView bounds])); if ([self displaysPageBreaks]) { @@ -309,7 +309,7 @@ point.x -= [self pageBreakMargins].left; #pragma clang diagnostic pop } - [clipView scrollPoint:point]; + [clipView scrollToPoint:point]; } else { [super goToPage:page]; } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit