Ver Fonte

ComPDFKit.Tool(Win)-补充内容选择工具邮寄菜单

liyijie há 1 mês atrás
pai
commit
54151a98ae
1 ficheiros alterados com 8 adições e 0 exclusões
  1. 8 0
      Demo/Examples/ComPDFKit.Tool/CPDFViewerTool.xaml.cs

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

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