Revision: 15734
          http://sourceforge.net/p/skim-app/code/15734
Author:   hofman
Date:     2025-10-30 16:34:17 +0000 (Thu, 30 Oct 2025)
Log Message:
-----------
fix comparison and comments

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

Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m       2025-10-30 10:31:26 UTC (rev 15733)
+++ trunk/SKBasePDFView.m       2025-10-30 16:34:17 UTC (rev 15734)
@@ -431,7 +431,7 @@
             [self verticallyScrollToTop];
         }
     } else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
-        // Apple scrolls to the bottom of the next page rather than the top
+        // Apple scrolls to the bottom of the previous page rather than the top
         [self verticallyScrollToTop];
     }
 }
@@ -524,8 +524,8 @@
     if (clipView && fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
         [self goToPreviousPage:sender];
         [self verticallyScrollToBottom];
-    } else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
-        // Apple scrolls to the top of the next page rather than the bottom
+    } else if (page && [[self currentPage] pageIndex] < [page pageIndex]) {
+        // Apple scrolls to the top of the previous page rather than the bottom
         [self verticallyScrollToBottom];
     }
 }

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