Revision: 13465
          http://sourceforge.net/p/skim-app/code/13465
Author:   hofman
Date:     2023-06-11 19:13:50 +0000 (Sun, 11 Jun 2023)
Log Message:
-----------
show presentation preview immediately, otherwise its visibility animation will 
come too early

Modified Paths:
--------------
    trunk/SKSnapshotWindowController.m

Modified: trunk/SKSnapshotWindowController.m
===================================================================
--- trunk/SKSnapshotWindowController.m  2023-06-09 23:15:00 UTC (rev 13464)
+++ trunk/SKSnapshotWindowController.m  2023-06-11 19:13:50 UTC (rev 13465)
@@ -341,9 +341,13 @@
     
     // Delayed to allow PDFView to finish its bookkeeping 
     // fixes bug of apparently ignoring the point but getting the page right.
-    DISPATCH_MAIN_AFTER_SEC(SMALL_DELAY, ^{
+    if (openType == SKSnapshotOpenPreview) {
         [self goToRect:rect openType:openType];
-    });
+    } else {
+        DISPATCH_MAIN_AFTER_SEC(SMALL_DELAY, ^{
+            [self goToRect:rect openType:openType];
+        });
+    }
 }
 
 - (void)setPdfDocument:(PDFDocument *)pdfDocument 
goToPageNumber:(NSInteger)pageNum rect:(NSRect)rect scaleFactor:(CGFloat)factor 
autoFits:(BOOL)autoFits {

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

Reply via email to