Revision: 10181
http://sourceforge.net/p/skim-app/code/10181
Author: hofman
Date: 2018-12-26 11:15:48 +0000 (Wed, 26 Dec 2018)
Log Message:
-----------
rewind page when switching to and from full screen modes
Modified Paths:
--------------
trunk/SKMainWindowController.m
Modified: trunk/SKMainWindowController.m
===================================================================
--- trunk/SKMainWindowController.m 2018-12-24 16:06:37 UTC (rev 10180)
+++ trunk/SKMainWindowController.m 2018-12-26 11:15:48 UTC (rev 10181)
@@ -1431,6 +1431,7 @@
[savedNormalSetup setObject:[NSNumber numberWithBool:[scrollView
hasVerticalScroller]] forKey:HASVERTICALSCROLLER_KEY];
[savedNormalSetup setObject:[NSNumber numberWithBool:[scrollView
autohidesScrollers]] forKey:AUTOHIDESSCROLLERS_KEY];
// Set up presentation mode
+ [pdfView needsRewind];
[pdfView setBackgroundColor:RUNNING(10_12) ? [NSColor blackColor] :
[NSColor clearColor]];
[pdfView setAutoScales:YES];
[pdfView setDisplayMode:kPDFDisplaySinglePage];
@@ -1612,6 +1613,7 @@
[[self window] setLevel:NSNormalWindowLevel];
[pdfView setBackgroundColor:backgroundColor];
[secondaryPdfView setBackgroundColor:backgroundColor];
+ [pdfView needsRewind];
[self applyPDFSettings:[fullScreenSetup count] ? fullScreenSetup :
savedNormalSetup];
[pdfView layoutDocumentView];
[pdfView requiresDisplay];
@@ -1620,6 +1622,7 @@
[pdfView setBackgroundColor:backgroundColor];
[secondaryPdfView setBackgroundColor:backgroundColor];
+ [pdfView needsRewind];
[self applyPDFSettings:fullScreenSetup];
[self fadeInFullScreenView:pdfSplitView inset:[SKSideWindow
requiredMargin]];
@@ -1745,6 +1748,7 @@
if (wasInteractionMode == SKPresentationMode)
[self exitPresentationMode];
+ [pdfView needsRewind];
[self applyPDFSettings:savedNormalSetup];
[savedNormalSetup removeAllObjects];
@@ -1884,8 +1888,10 @@
[pdfView setInteractionMode:SKFullScreenMode];
[pdfView setBackgroundColor:backgroundColor];
[secondaryPdfView setBackgroundColor:backgroundColor];
- if ([[pdfView document] isLocked] == NO)
+ if ([[pdfView document] isLocked] == NO && [fullScreenSetup count]) {
+ [pdfView needsRewind];
[self applyPDFSettings:fullScreenSetup];
+ }
if (collapseSidePanesInFullScreen) {
[savedNormalSetup setObject:[NSNumber numberWithDouble:[self
leftSideWidth]] forKey:LEFTSIDEPANEWIDTH_KEY];
[savedNormalSetup setObject:[NSNumber numberWithDouble:[self
rightSideWidth]] forKey:RIGHTSIDEPANEWIDTH_KEY];
@@ -1908,6 +1914,7 @@
[pdfView setInteractionMode:SKNormalMode];
[pdfView setBackgroundColor:backgroundColor];
[secondaryPdfView setBackgroundColor:backgroundColor];
+ [pdfView needsRewind];
[self applyPDFSettings:savedNormalSetup];
NSNumber *leftWidth = [savedNormalSetup
objectForKey:LEFTSIDEPANEWIDTH_KEY];
NSNumber *rightWidth = [savedNormalSetup
objectForKey:RIGHTSIDEPANEWIDTH_KEY];
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