Browse Source

ComPDFKit.Tool(Win)-补充内容选择器右击菜单

liyijie 1 month ago
parent
commit
0b718a9478
1 changed files with 7 additions and 0 deletions
  1. 7 0
      Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.xaml.cs

+ 7 - 0
Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.xaml.cs

@@ -983,6 +983,13 @@ namespace ComPDFKit.Tool
                     mouseEventObject.hitTestType = MouseHitTestType.ImageSelect;
                     mouseEventObject.hitTestType = MouseHitTestType.ImageSelect;
                 }
                 }
             }
             }
+            if (currentModel == ToolType.SelectedPage)
+            {
+                if (HitTestPageSelectedRect())
+                {
+                    mouseEventObject.hitTestType = MouseHitTestType.SelectedPageRect;
+                }
+            }
             MouseRightButtonDownHandler?.Invoke(this, mouseEventObject);
             MouseRightButtonDownHandler?.Invoke(this, mouseEventObject);
         }
         }