Revision: 13551
          http://sourceforge.net/p/skim-app/code/13551
Author:   hofman
Date:     2023-07-31 14:23:10 +0000 (Mon, 31 Jul 2023)
Log Message:
-----------
make sure the pdfview has a mouseMoved and mouseEnteredAndExited tracking 
areafor the whole visible rect

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

Modified: trunk/SKPDFView.m
===================================================================
--- trunk/SKPDFView.m   2023-07-31 14:13:51 UTC (rev 13550)
+++ trunk/SKPDFView.m   2023-07-31 14:23:10 UTC (rev 13551)
@@ -335,6 +335,14 @@
     gestureRotation = 0.0;
     gesturePageIndex = NSNotFound;
     
+    NSTrackingAreaOptions options = NSTrackingMouseMoved | 
NSTrackingMouseEnteredAndExited;
+    for (NSTrackingArea *area in [self trackingAreas]) {
+        if (([area options] & NSTrackingInVisibleRect))
+            options &= ~[area options];
+    }
+    if (options)
+        [self addTrackingArea:[[[NSTrackingArea alloc] initWithRect:NSZeroRect 
options:options | NSTrackingActiveInKeyWindow | NSTrackingInVisibleRect 
owner:self userInfo:nil] autorelease]];
+    
     [self registerForDraggedTypes:@[NSPasteboardTypeColor, 
SKPasteboardTypeLineStyle]];
     
     NSNotificationCenter *nc = [NSNotificationCenter defaultCenter];

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