mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-17 00:49:18 +02:00
parent
0e494526fd
commit
4aa0e5a469
@ -255,9 +255,9 @@ Begin
|
||||
else
|
||||
ActiveDrag := dopDock;
|
||||
|
||||
// if Target changed, send dmDragLeave to old target and dmDragEnter to new
|
||||
if TargetControl <> DragObject.DragTarget then
|
||||
begin
|
||||
// Target changed => send dmDragLeave to old target and dmDragEnter to new
|
||||
SendDragOver(dmDragLeave);
|
||||
if DragObject = nil then Exit;
|
||||
DragObject.DragTarget := TargetControl;
|
||||
@ -268,6 +268,11 @@ Begin
|
||||
DragObject.DragPos := Position;
|
||||
SendDragOver(dmDragEnter);
|
||||
if DragObject = nil then Exit;
|
||||
end else begin
|
||||
// same target => send dmDragMove
|
||||
DragObject.DragPos := Position;
|
||||
SendDragOver(dmDragMove);
|
||||
if DragObject = nil then Exit;
|
||||
end;
|
||||
|
||||
// update Position
|
||||
|
Loading…
Reference in New Issue
Block a user