Revision: 16014
http://sourceforge.net/p/skim-app/code/16014
Author: hofman
Date: 2026-01-13 17:01:40 +0000 (Tue, 13 Jan 2026)
Log Message:
-----------
correct scroll by contentInset when flipped
Modified Paths:
--------------
trunk/PDFView_SKExtensions.m
Modified: trunk/PDFView_SKExtensions.m
===================================================================
--- trunk/PDFView_SKExtensions.m 2026-01-13 16:56:34 UTC (rev 16013)
+++ trunk/PDFView_SKExtensions.m 2026-01-13 17:01:40 UTC (rev 16014)
@@ -222,7 +222,9 @@
NSRect bounds = [clipView bounds];
NSPoint origin = bounds.origin;
bounds.origin = [self convertPoint:[self convertPoint:dest.point
fromPage:page] toView:clipView];
- if ([clipView isFlipped] == NO)
+ if ([clipView isFlipped])
+ bounds.origin.y -= [clipView contentInsets].top;
+ else
bounds.origin.y -= NSHeight(bounds) - [clipView
contentInsets].top;
bounds = [clipView constrainBoundsRect:bounds];
if (NSEqualPoints(bounds.origin, origin) == NO) {
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