浏览代码

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

liyijie 1 月之前
父节点
当前提交
0b718a9478
共有 1 个文件被更改,包括 7 次插入0 次删除
  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;
                 }
             }
+            if (currentModel == ToolType.SelectedPage)
+            {
+                if (HitTestPageSelectedRect())
+                {
+                    mouseEventObject.hitTestType = MouseHitTestType.SelectedPageRect;
+                }
+            }
             MouseRightButtonDownHandler?.Invoke(this, mouseEventObject);
         }