Skip to content

Commit 003aa9b

Browse files
committed
Fixed issue #1297: First click on node may not trigger OnNodeClick
1 parent 8a6d4de commit 003aa9b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Source/VirtualTrees.BaseTree.pas

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12436,6 +12436,7 @@ procedure TBaseVirtualTree.HandleMouseDown(var Message: TWMMouse; var HitInfo: T
1243612436
Winapi.Windows.SetFocus(Handle);
1243712437
// Repeat the hit test as an OnExit event might got triggered that could modify the tree.
1243812438
GetHitTestInfoAt(Message.XPos, Message.YPos, True, HitInfo, KeysToShiftState(Message.Keys));
12439+
FLastHitInfo := HitInfo; // See issue #1297
1243912440
end;
1244012441

1244112442
if IsEmpty then

0 commit comments

Comments
 (0)