Ver código fonte

ComPDFKit.Tool(Win) - 修改鼠标按下判断

liyuxuan 2 meses atrás
pai
commit
6e3f3afafb
1 arquivos alterados com 2 adições e 1 exclusões
  1. 2 1
      Demo/Examples/ComPDFKit.Tool/DrawTool/AnnotEdit.cs

+ 2 - 1
Demo/Examples/ComPDFKit.Tool/DrawTool/AnnotEdit.cs

@@ -13,6 +13,7 @@ using System.Linq;
 using System.Net;
 using System.Windows;
 using System.Windows.Controls;
+using System.Windows.Input;
 using System.Windows.Media;
 using System.Windows.Media.TextFormatting;
 using static ComPDFKit.Tool.Help.ImportWin32;
@@ -367,7 +368,7 @@ namespace ComPDFKit.Tool.DrawTool
         public virtual void OnMouseMove(Point mousePoint, out bool Tag)
         {
             Tag = false;
-            if (isMouseDown)
+            if (Mouse.LeftButton==MouseButtonState.Pressed)
             {
                 Tag = isMouseDown;
                 mouseEndDrawPoint = mousePoint;