Revision: 16013
http://sourceforge.net/p/skim-app/code/16013
Author: hofman
Date: 2026-01-13 16:56:34 +0000 (Tue, 13 Jan 2026)
Log Message:
-----------
only correct scrollToDestination when we change it
Modified Paths:
--------------
trunk/PDFView_SKExtensions.m
Modified: trunk/PDFView_SKExtensions.m
===================================================================
--- trunk/PDFView_SKExtensions.m 2026-01-13 16:54:08 UTC (rev 16012)
+++ trunk/PDFView_SKExtensions.m 2026-01-13 16:56:34 UTC (rev 16013)
@@ -220,12 +220,15 @@
NSScrollView *scrollView = [self embeddedScrollView];
NSClipView *clipView = [scrollView contentView];
NSRect bounds = [clipView bounds];
+ NSPoint origin = bounds.origin;
bounds.origin = [self convertPoint:[self convertPoint:dest.point
fromPage:page] toView:clipView];
if ([clipView isFlipped] == NO)
bounds.origin.y -= NSHeight(bounds) - [clipView
contentInsets].top;
bounds = [clipView constrainBoundsRect:bounds];
- [clipView scrollToPoint:bounds.origin];
- [scrollView reflectScrolledClipView:clipView];
+ if (NSEqualPoints(bounds.origin, origin) == NO) {
+ [clipView scrollToPoint:bounds.origin];
+ [scrollView reflectScrolledClipView:clipView];
+ }
}
}
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
_______________________________________________
Skim-app-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/skim-app-commit