Revision: 16653
http://sourceforge.net/p/skim-app/code/16653
Author: hofman
Date: 2026-10-12 17:46:50 +0000 (Mon, 12 Oct 2026)
Log Message:
-----------
don't correct page-up/down when scrolling horizontally, e.g. when Apple decides
to handle horizontal layout
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2026-10-12 15:06:18 UTC (rev 16652)
+++ trunk/SKBasePDFView.m 2026-10-12 17:46:50 UTC (rev 16653)
@@ -513,7 +513,7 @@
NSPoint origin = [clipView bounds].origin;
CGFloat scroll = origin.y - NSMinY(bounds);
CGFloat offset = NSHeight(bounds) - [clipView contentInsets].top;
- if (offset <= 2.0)
+ if (offset <= 2.0 || fabs(origin.x - NSMinX(bounds)) > 2.0)
return;
offset = fmax(offset - [scrollView verticalPageScroll], 0.5 * offset);
// check whether we have scrolled too much, as Apple does, and in which
direction
@@ -565,7 +565,7 @@
NSPoint origin = [clipView bounds].origin;
CGFloat scroll = origin.y - NSMinY(bounds);
CGFloat offset = NSHeight(bounds) - [clipView contentInsets].top;
- if (offset <= 2.0)
+ if (offset <= 2.0 || fabs(origin.x - NSMinX(bounds)) > 2.0)
return;
offset = fmax(offset - [scrollView verticalPageScroll], 0.5 * offset);
// check whether we have scrolled too much, as Apple does, and in which
direction
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