Ver Fonte

【注释】修复表格注释周边事件失效(移动、新增、拖拽)

wanjun há 10 meses atrás
pai
commit
74652fcf79

+ 3 - 4
PDF Office/PDF Master/Class/PDFWindowController/PDFListView/CPDFListViewExtension/CPDFListView+Event.m

@@ -116,14 +116,13 @@ static inline CPDFAreaOfInterest CAreaOfInterestForResizeHandle(CRectEdges mask,
             //                }
             //            }
         } else {
-            if ([self consistentTypeWithAnnotation:newActiveAnnotation]) {
+            if ([self.activeAnnotation isKindOfClass:[KMTableAnnotation class]]) {
+                [self doDragTableAnnotationWithEvent:theEvent];
+            } else if ([self consistentTypeWithAnnotation:newActiveAnnotation]) {
                 [self doDragAnnotationWithEvent:theEvent forAnnotation:newActiveAnnotation];
             }
         }
         
-        if ([self.activeAnnotation isKindOfClass:[KMTableAnnotation class]]) {
-            [self doDragTableAnnotationWithEvent:theEvent];
-        }
     } else if (self.isTakeSnapeSelectConetent) {
         [self doSelectSnapshotWithEvent:theEvent];
     } else if (CMoveToolMode == self.toolMode) {