Browse Source

注释 - 修复展开左侧面板情况下,鼠标样式在PDFView右侧区域无法显示

wanjun 1 year ago
parent
commit
7a67b76082

+ 5 - 1
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Tool.m

@@ -97,7 +97,11 @@
 }
 
 - (CPDFAreaOfInterest)areaOfInterestForMouse:(NSEvent *)theEvent {
-    CPDFAreaOfInterest area = [super areaOfInterestForMouse:theEvent];
+    CGPoint point = [self convertPoint: [theEvent locationInWindow] fromView:nil];
+    CPDFAreaOfInterest area = [self areaOfInterestForPoint:point];
+    [self setCursorForAreaOfInterest:area];
+    
+//    CPDFAreaOfInterest area = [super areaOfInterestForMouse:theEvent];
     NSPoint p = [theEvent locationInWindow];
     NSInteger modifiers = [theEvent standardPDFListViewModifierFlags];