Skip to content

Commit

Permalink
Fix LM_LM_LBUTTONDOWN message called twice
Browse files Browse the repository at this point in the history
  • Loading branch information
salvadorbs committed Jan 10, 2024
1 parent 027d4bd commit fde7697
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Source/VirtualTrees.BaseTree.pas
Original file line number Diff line number Diff line change
Expand Up @@ -16771,7 +16771,8 @@ procedure TBaseVirtualTree.WndProc(var Message: TLMessage);
if not (csDesigning in ComponentState) and
((Message.Msg = LM_LBUTTONDOWN) or (Message.Msg = LM_LBUTTONDBLCLK)) then
begin
if (DragMode = dmAutomatic) and (DragKind = dkDrag) then
Handled := (DragMode = dmAutomatic) and (DragKind = dkDrag);
if Handled then
begin
if not IsControlMouseMsg(TLMMouse(Message)) then
begin
Expand Down

0 comments on commit fde7697

Please sign in to comment.