Revision: 15726
http://sourceforge.net/p/skim-app/code/15726
Author: hofman
Date: 2025-10-28 16:54:37 +0000 (Tue, 28 Oct 2025)
Log Message:
-----------
fix scroll point for flipped clip view
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-28 16:40:49 UTC (rev 15725)
+++ trunk/SKBasePDFView.m 2025-10-28 16:54:37 UTC (rev 15726)
@@ -373,8 +373,10 @@
NSScrollView *scrollView = [self scrollView];
NSClipView *clipView = [scrollView contentView];
dest.point = [self convertPoint:[self convertPoint:dest.point
fromPage:page] toView:clipView];
- if ([clipView isFlipped] == NO)
- dest.point.y -= NSHeight([clipView visibleRect]) - [clipView
contentInsets].top;
+ if ([clipView isFlipped])
+ dest.point.y -= [clipView contentInsets].top;
+ else
+ dest.point.y -= NSHeight([clipView bounds]) - [clipView
contentInsets].top;
[clipView scrollToPoint:dest.point];
[scrollView reflectScrolledClipView:clipView];
} else if (hasVerticalLayout(self)) {
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