Просмотр исходного кода

综合 - 修复便签注释单击展开便签面板

wanjun 1 год назад
Родитель
Сommit
39485b211e

+ 6 - 2
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

@@ -3004,7 +3004,7 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
                     } else {
                         if(self.activeAnnotations.count == 1 &&
                            self.activeAnnotation == newActiveAnnotation &&
-                           ([newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]] || [newActiveAnnotation isKindOfClass:[CPDFFreeTextAnnotation class]])) {
+                           [newActiveAnnotation isKindOfClass:[CPDFFreeTextAnnotation class]]) {
                             [self editAnnotation:newActiveAnnotation];
                             break;
                         }
@@ -3025,8 +3025,12 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
                             if (CFormToolMode != self.toolMode) {
                                 [super mouseDown:theEvent];
                             }
-                        } else if ([theEvent clickCount] == 2) {
+                        } else if ([newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]]) {
                             [self editAnnotation:newActiveAnnotation];
+                        } else if ([theEvent clickCount] == 2) {
+                            if (![newActiveAnnotation isKindOfClass:[CPDFTextAnnotation class]]) {
+                                [self editAnnotation:newActiveAnnotation];
+                            }
                         }
                     }
                     [self setNeedsDisplayAnnotationViewForPage:page];