Revision: 28781
          http://sourceforge.net/p/bibdesk/svn/28781
Author:   hofman
Date:     2024-02-20 19:18:42 +0000 (Tue, 20 Feb 2024)
Log Message:
-----------
return nil from hitTest: in progress indicator view

Modified Paths:
--------------
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
    trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-02-20 
18:18:39 UTC (rev 28780)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVFileView.m      2024-02-20 
19:18:42 UTC (rev 28781)
@@ -5041,7 +5041,15 @@
 
 - (BOOL)isFlipped { return YES; }
 
-- (NSView *)hitTest:(NSPoint)point { return nil; }
+- (NSView *)hitTest:(NSPoint)point {
+    NSPoint p = [self convertPoint:point fromView:[self superview]];
+    for (NSView *view in [self subviews]) {
+        if (NSPointInRect(p, [view frame]))
+            return [view hitTest:p];
+    }
+    return nil;
+    
+}
 
 - (void)drawRect:(NSRect)dirtyRect {
     [[self delegate] drawRect:dirtyRect inView:self];

Modified: trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m
===================================================================
--- trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m     
2024-02-20 18:18:39 UTC (rev 28780)
+++ trunk/bibdesk_vendorsrc/amaxwell/FileView/FVProgressIndicator.m     
2024-02-20 19:18:42 UTC (rev 28781)
@@ -84,6 +84,8 @@
     [self _invalidateProgressTimer];
 }
 
+- (NSView *)hitTest:(NSPoint)point { return nil; }
+
 - (void)setStyle:(FVProgressIndicatorStyle)style {
     if (style != _style) {
         _style = style;

This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.



_______________________________________________
Bibdesk-commit mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/bibdesk-commit

Reply via email to