Revision: 15725
http://sourceforge.net/p/skim-app/code/15725
Author: hofman
Date: 2025-10-28 16:40:49 +0000 (Tue, 28 Oct 2025)
Log Message:
-----------
use page scroll from scroll view instead of rad coding 10
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-10-27 17:47:55 UTC (rev 15724)
+++ trunk/SKBasePDFView.m 2025-10-28 16:40:49 UTC (rev 15725)
@@ -416,7 +416,7 @@
if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) <
NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat bottom = NSMinY([[scrollView documentView] frame]);
- bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height -
10.0, 0.5 * height));
+ bounds.origin.y = fmax(bottom, NSMinY(bounds) - fmax(height -
[scrollView verticalPageScroll], 0.5 * height));
[clipView scrollToPoint:bounds.origin];
[scrollView reflectScrolledClipView:clipView];
}
@@ -458,7 +458,7 @@
if ([clipView isFlipped] == NO && NSMinY([clipView bounds]) >
NSMinY(bounds)) {
CGFloat height = NSHeight(bounds) - [clipView contentInsets].top;
CGFloat top = NSMaxY([[scrollView documentView] frame]);
- bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height
- 10.0, 0.5 * height));
+ bounds.origin.y = fmin(top - height, NSMinY(bounds) + fmax(height
- [scrollView verticalPageScroll], 0.5 * height));
[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