浏览代码

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

liyuxuan 2 月之前
父节点
当前提交
6e3f3afafb
共有 1 个文件被更改,包括 2 次插入1 次删除
  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;