Parcourir la source

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

liyuxuan il y a 2 mois
Parent
commit
6e3f3afafb
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  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;