Revision: 15742
http://sourceforge.net/p/skim-app/code/15742
Author: hofman
Date: 2025-11-01 17:18:36 +0000 (Sat, 01 Nov 2025)
Log Message:
-----------
compare origin to determine whether scrolling took place
Modified Paths:
--------------
trunk/SKBasePDFView.m
Modified: trunk/SKBasePDFView.m
===================================================================
--- trunk/SKBasePDFView.m 2025-11-01 16:33:09 UTC (rev 15741)
+++ trunk/SKBasePDFView.m 2025-11-01 17:18:36 UTC (rev 15742)
@@ -495,7 +495,7 @@
[super scrollLineUp:sender];
- if (clipView && fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ if (clipView && NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToNextPage:sender];
[self verticallyScrollToTop];
} else if (page && [[self currentPage] pageIndex] > [page pageIndex]) {
@@ -519,7 +519,7 @@
[super scrollLineDown:sender];
- if (clipView && fabs(NSMinY([clipView bounds]) - NSMinY(bounds)) <= 0.0) {
+ if (clipView && NSEqualPoints([clipView bounds].origin, bounds.origin)) {
[self goToPreviousPage:sender];
[self verticallyScrollToBottom];
} else if (page && [[self currentPage] pageIndex] < [page pageIndex]) {
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