Revision: 15622 http://sourceforge.net/p/skim-app/code/15622 Author: hofman Date: 2025-07-08 16:01:41 +0000 (Tue, 08 Jul 2025) Log Message: ----------- ignore annotations that don't display immediately, no need to test for editing as this will be hidden
Modified Paths: -------------- trunk/SKPDFView.m Modified: trunk/SKPDFView.m =================================================================== --- trunk/SKPDFView.m 2025-07-08 15:24:11 UTC (rev 15621) +++ trunk/SKPDFView.m 2025-07-08 16:01:41 UTC (rev 15622) @@ -4192,10 +4192,12 @@ // Hit test for annotation. for (PDFAnnotation *annotation in annotations) { - if ([annotation isSkimNote] && [annotation hitTest:point] && [self isEditingAnnotation:annotation] == NO) { + if ([annotation shouldDisplay] == NO) { + continue; + } else if ([annotation isSkimNote] && [annotation hitTest:point]) { newCurrentAnnotation = annotation; break; - } else if ([annotation shouldDisplay] && NSPointInRect(point, [annotation bounds]) && (toolMode == SKToolModeText || IS_MARKUP(annotationMode)) && linkAnnotation == nil) { + } else if (NSPointInRect(point, [annotation bounds]) && (toolMode == SKToolModeText || IS_MARKUP(annotationMode)) && linkAnnotation == nil) { if ([annotation isLink]) linkAnnotation = annotation; else This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. _______________________________________________ Skim-app-commit mailing list Skim-app-commit@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/skim-app-commit