Skip to content

Commit

Permalink
fix Hex-Dragon#5665 在模组列表中划过鼠标时如果鼠标在模组条目列表之外松开会导致无法与悬浮卡片的按钮交互
Browse files Browse the repository at this point in the history
  • Loading branch information
Open-KFC committed Mar 2, 2025
1 parent 503244a commit a074ec8
Showing 1 changed file with 9 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,15 @@ Public Class MyLocalModItem
Next
End Sub

'在鼠标离开整个ModItem列表视图(即不悬停在任何一个ModItem上)时,取消划过状态以及启用CardSelect的命中 #5665
Private Sub Button_MouseLeaveModItems(sender As Object, e As Object) Handles Me.MouseLeave
If Parent Is Nothing Then Exit Sub
If Swiping AndAlso TypeOf Mouse.DirectlyOver IsNot MyLocalModItem Then
Swiping = False
FrmVersionMod.CardSelect.IsHitTestVisible = True
End If
End Sub

'勾选状态
Public Event Check(sender As Object, e As RouteEventArgs)
Public Event Changed(sender As Object, e As RouteEventArgs)
Expand Down

0 comments on commit a074ec8

Please sign in to comment.