Revision: 13547
          http://sourceforge.net/p/skim-app/code/13547
Author:   hofman
Date:     2023-07-31 09:24:43 +0000 (Mon, 31 Jul 2023)
Log Message:
-----------
no need to pass AssumeInside flag to tracking area

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-07-29 15:37:25 UTC (rev 13546)
+++ trunk/SKPDFView.m   2023-07-31 09:24:43 UTC (rev 13547)
@@ -414,6 +414,7 @@
         BOOL hasLinkToolTips = (toolMode == SKTextToolMode || toolMode == 
SKMoveToolMode || toolMode == SKNoteToolMode);
         NSPoint mouseLoc = [docView convertPointFromScreen:[NSEvent 
mouseLocation]];
         BOOL mouseInView = [[self window] isVisible] && 
NSMouseInRect(mouseLoc, [docView visibleRect], [docView isFlipped]);
+        NSTrackingAreaOptions options = NSTrackingMouseEnteredAndExited | 
NSTrackingActiveInActiveApp;
         PDFAnnotation *hoverAnnotation = nil;
         
         for (PDFPage *page in [self visiblePages]) {
@@ -423,11 +424,8 @@
                     if (NSIsEmptyRect(rect) == NO) {
                         rect = [self convertRect:rect toView:docView];
                         NSDictionary *userInfo = [[NSDictionary alloc] 
initWithObjectsAndKeys:annotation, SKAnnotationKey, nil];
-                        NSTrackingAreaOptions options = 
NSTrackingMouseEnteredAndExited | NSTrackingActiveInActiveApp;
-                        if (mouseInView && NSMouseInRect(mouseLoc, rect, 
[docView isFlipped])) {
-                            options |= NSTrackingAssumeInside;
+                        if (mouseInView && NSMouseInRect(mouseLoc, rect, 
[docView isFlipped]))
                             hoverAnnotation = annotation;
-                        }
                         NSTrackingArea *area = [[NSTrackingArea alloc] 
initWithRect:rect options:options owner:self userInfo:userInfo];
                         [docView addTrackingArea:area];
                         [area release];

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