Revision: 15996
          http://sourceforge.net/p/skim-app/code/15996
Author:   hofman
Date:     2026-01-11 15:46:28 +0000 (Sun, 11 Jan 2026)
Log Message:
-----------
check if point is in rewindPage bounds, more efficient than getting page for a 
point

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2026-01-10 17:30:24 UTC (rev 15995)
+++ trunk/SKPDFView.m   2026-01-11 15:46:28 UTC (rev 15996)
@@ -1532,7 +1532,7 @@
 }
 
 - (void)doInitialRewind {
-    if (rewindPage && [self pageForPoint:SKCenterPoint([self bounds]) 
nearest:NO] != rewindPage)
+    if (rewindPage && ([self isPageAtIndexDisplayed:[rewindPage pageIndex]] == 
NO || NSPointInRect(SKCenterPoint([self bounds]), [self convertRect:[rewindPage 
boundsForBox:[self displayBox]] fromPage:rewindPage]) == NO))
         [self doRewind];
 }
 

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