Revision: 16016
          http://sourceforge.net/p/skim-app/code/16016
Author:   hofman
Date:     2026-01-13 17:05:58 +0000 (Tue, 13 Jan 2026)
Log Message:
-----------
only correct scrollToDestination when we change it

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

Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m       2026-01-13 17:04:03 UTC (rev 16015)
+++ trunk/SKBasePDFView.m       2026-01-13 17:05:58 UTC (rev 16016)
@@ -394,8 +394,10 @@
         else
             bounds.origin.y -= NSHeight(bounds) - [clipView contentInsets].top;
         bounds = [clipView constrainBoundsRect:bounds];
-        [clipView scrollToPoint:bounds.origin];
-        [scrollView reflectScrolledClipView:clipView];
+        if (NSEqualPoints(bounds.origin, origin) == NO) {
+            [clipView scrollToPoint:bounds.origin];
+            [scrollView reflectScrolledClipView:clipView];
+        }
     } else if ([self displayDirection] == kPDFDisplayDirectionVertical && 
([self displayMode] & kPDFDisplaySinglePageContinuous)) {
         [self scrollToPage:page mode:kPDFDisplaySinglePageContinuous];
     }

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