Merge branch 'fix-vtv-drag-interference' into 'main'

VirtualTreeView: Cancel drag when context menu opens

See merge request freepascal.org/lazarus/lazarus!438
This commit is contained in:
Hendi 2025-04-04 11:24:43 +02:00
commit 684a21c77d

View File

@ -16659,6 +16659,7 @@ var
begin
{$ifdef DEBUG_VTV}Logger.EnterMethod([lcMessages],'WMContextMenu');{$endif}
DoStateChange([], [tsClearPending, tsEditPending, tsOLEDragPending, tsVCLDragPending]);
CancelDrag;
{$ifdef ContextMenuBeforeMouseUp}
if Assigned(PopupMenu) then
begin