Revision: 16134
http://sourceforge.net/p/skim-app/code/16134
Author: hofman
Date: 2026-03-31 18:05:20 +0000 (Tue, 31 Mar 2026)
Log Message:
-----------
variable for current page index
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2026-03-31 17:50:06 UTC (rev 16133)
+++ trunk/SKMainWindowController.m 2026-03-31 18:05:20 UTC (rev 16134)
@@ -1678,6 +1678,7 @@
NSView *contentView = [oldView superview];
BOOL useContentTop = mwcFlags.fullSizeContent || isPresentation;
BOOL hasStatus = isPresentation == NO && [statusBar isVisible];
+ NSUInteger pageIndex = [[pdfView currentPage] pageIndex];
NSArray *constraints = @[
[[overviewContentView leadingAnchor]
constraintEqualToAnchor:[contentView leadingAnchor]],
[[contentView trailingAnchor]
constraintEqualToAnchor:[overviewContentView trailingAnchor]],
@@ -1685,8 +1686,8 @@
[(hasStatus ? [statusBar topAnchor] : [contentView bottomAnchor])
constraintEqualToAnchor:[overviewContentView bottomAnchor]]];
[overviewContentView setFrame:[oldView frame]];
- [overviewView scrollRectToVisible:[overviewView
frameForItemAtIndex:[[pdfView currentPage] pageIndex]]];
- [overviewView setSelectionIndexes:[NSIndexSet indexSetWithIndex:[[pdfView
currentPage] pageIndex]]];
+ [overviewView scrollRectToVisible:[overviewView
frameForItemAtIndex:pageIndex]];
+ [overviewView setSelectionIndexes:[NSIndexSet
indexSetWithIndex:pageIndex]];
[overviewView setAllowsMultipleSelection:isPresentation == NO && [[self
pdfDocument] allowsSaving]];
if (@available(macOS 10.14, *)) {
@@ -1717,7 +1718,7 @@
[NSLayoutConstraint activateConstraints:constraints];
}
completionHandler:^{
- [overviewView scrollRectToVisible:[overviewView
frameForItemAtIndex:[[pdfView currentPage] pageIndex]]];
+ [overviewView scrollRectToVisible:[overviewView
frameForItemAtIndex:pageIndex]];
}];
} else {
[contentView replaceSubview:oldView with:overviewContentView];
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