Skip to content

Commit cb749ef

Browse files
committed
fix Hex-Dragon#5744: 在MyScrollView中滑动鼠标会使显示的ToolTip永远不可见
1 parent 503244a commit cb749ef

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

Plain Craft Launcher 2/Controls/MyScrollViewer.vb

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,11 @@
2121
PerformVerticalOffsetDelta(-e.Delta)
2222
'关闭 Tooltip (#2552)
2323
For Each TooltipBorder In Application.ShowingTooltips
24-
AniStart(AaOpacity(TooltipBorder, -1, 100), $"Hide Tooltip {GetUuid()}")
24+
'以正确的方式关闭 Tooltip 而不是降低 Border 不透明度 (#5744)
25+
Dim Tooltip As ToolTip = TryCast(VisualTreeHelper.GetParent(TooltipBorder), ToolTip)
26+
If Tooltip IsNot Nothing Then
27+
Tooltip.IsOpen = False
28+
End If
2529
Next
2630
End Sub
2731
Public Sub PerformVerticalOffsetDelta(Delta As Double)

0 commit comments

Comments
 (0)