Revision: 16646
http://sourceforge.net/p/skim-app/code/16646
Author: hofman
Date: 2026-10-11 14:21:53 +0000 (Sun, 11 Oct 2026)
Log Message:
-----------
reorganize calculation of scroll
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2026-10-11 09:09:19 UTC (rev 16645)
+++ trunk/SKBasePDFView.m 2026-10-11 14:21:53 UTC (rev 16646)
@@ -356,10 +356,12 @@
NSRect docRect = [[scrollView documentView] frame];
if (NSHeight(docRect) <= NSHeight(bounds) - inset)
return;
- if ([clipView isFlipped])
- bounds.origin.y = toTop ? NSMinY(docRect) - inset : NSMaxY(docRect) -
NSHeight(bounds);
+ if (toTop == NO)
+ inset = 0.0;
+ if ([clipView isFlipped] == toTop)
+ bounds.origin.y = NSMinY(docRect) - inset;
else
- bounds.origin.y = toTop ? NSMaxY(docRect) - NSHeight(bounds) + inset :
NSMinY(docRect);
+ bounds.origin.y = NSMaxY(docRect) - NSHeight(bounds) + inset;
[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