Revision: 15829
http://sourceforge.net/p/skim-app/code/15829
Author: hofman
Date: 2025-11-25 15:12:24 +0000 (Tue, 25 Nov 2025)
Log Message:
-----------
remove a local variable
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-11-25 10:28:32 UTC (rev 15828)
+++ trunk/SKBasePDFView.m 2025-11-25 15:12:24 UTC (rev 15829)
@@ -432,7 +432,6 @@
CGFloat inset = [clipView contentInsets].top;
CGFloat height = NSHeight(bounds) - inset;
CGFloat offset = fmax(height - [scrollView verticalPageScroll], 0.5 *
height);
- NSRect docRect = [[scrollView documentView] frame];
CGFloat scroll = NSMinY([clipView bounds]) - NSMinY(bounds);
// check whether we have scrolled and in which direction
// consider all implementation details as they are wrong and can change
@@ -439,9 +438,9 @@
if ([clipView isFlipped] == NO)
inset = 0.0;
if (scroll < -offset)
- bounds.origin.y = fmax(NSMinY(docRect) - inset, NSMinY(bounds) -
offset);
+ bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]) -
inset, NSMinY(bounds) - offset);
else if (scroll > offset)
- bounds.origin.y = fmin(NSMaxY(docRect) - height - inset,
NSMinY(bounds) + offset);
+ bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) -
height - inset, NSMinY(bounds) + offset);
else
return;
[clipView scrollToPoint:bounds.origin];
@@ -490,7 +489,6 @@
CGFloat inset = [clipView contentInsets].top;
CGFloat height = NSHeight(bounds) - inset;
CGFloat offset = fmax(height - [scrollView verticalPageScroll], 0.5 *
height);
- NSRect docRect = [[scrollView documentView] frame];
CGFloat scroll = NSMinY([clipView bounds]) - NSMinY(bounds);
// check whether we have scrolled and in which direction
// consider all implementation details as they are wrong and can change
@@ -497,9 +495,9 @@
if ([clipView isFlipped] == NO)
inset = 0.0;
if (scroll > offset)
- bounds.origin.y = fmin(NSMaxY(docRect) - height - inset,
NSMinY(bounds) + offset);
+ bounds.origin.y = fmin(NSMaxY([[scrollView documentView] frame]) -
height - inset, NSMinY(bounds) + offset);
else if (scroll < -offset)
- bounds.origin.y = fmax(NSMinY(docRect) - inset, NSMinY(bounds) -
offset);
+ bounds.origin.y = fmax(NSMinY([[scrollView documentView] frame]) -
inset, NSMinY(bounds) - offset);
else
return;
[clipView scrollToPoint:bounds.origin];
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