From 16755cd4a947d76bbf1b89c5007b8ee84cfebd81 Mon Sep 17 00:00:00 2001 From: Open-KFC <1811593346@qq.com> Date: Fri, 7 Mar 2025 03:43:21 +0800 Subject: [PATCH] =?UTF-8?q?fix=20#5655:=20=E9=BC=A0=E6=A0=87=E4=BF=9D?= =?UTF-8?q?=E6=8C=81=E7=A7=BB=E5=8A=A8=E6=97=B6=E6=8A=AC=E8=B5=B7=E4=BB=8D?= =?UTF-8?q?=E5=8F=AF=E7=BB=A7=E7=BB=AD=E6=94=B9=E5=8F=98=E7=AA=97=E5=8F=A3?= =?UTF-8?q?=E5=A4=A7=E5=B0=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Plain Craft Launcher 2/Controls/MyResizer.vb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Plain Craft Launcher 2/Controls/MyResizer.vb b/Plain Craft Launcher 2/Controls/MyResizer.vb index e0c21ed..1200a4b 100644 --- a/Plain Craft Launcher 2/Controls/MyResizer.vb +++ b/Plain Craft Launcher 2/Controls/MyResizer.vb @@ -301,7 +301,7 @@ Public Class MyResizer End Sub Private Sub updateMouseDown() - Dim flag As Boolean = Mouse.LeftButton = MouseButtonState.Released + Dim flag = (GetAsyncKeyState(&H1) And &H8000) = 0 '调用原生API判断鼠标是否抬起,如果使用WPF的API的话鼠标不在窗口上时不会更新状态 (#5655) If flag Then resizeRight = False resizeLeft = False @@ -312,4 +312,5 @@ Public Class MyResizer Private Declare Function GetCursorPos Lib "user32.dll" ( ByRef lpPoint As PointAPI) As Boolean + Private Declare Function GetAsyncKeyState Lib "user32.dll" (vKey As Integer) As Short End Class