Jelajahi Sumber

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

liyijie 1 bulan lalu
induk
melakukan
0b718a9478
1 mengubah file dengan 7 tambahan dan 0 penghapusan
  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);
         }