LCL: proper initialization of dragimagelist position in ShowDragImage manually. Issue #40640

This commit is contained in:
Željan Rikalo 2023-12-13 16:02:55 +01:00
parent 092cae8ceb
commit 85aa06c1d8

View File

@ -281,7 +281,7 @@ end;
procedure TDragImageListResolution.ShowDragImage;
begin
if Dragging then
TWSDragImageListResolutionClass(WidgetSetClass).ShowDragImage(Self, 0, 0, 0, False);
TWSDragImageListResolutionClass(WidgetSetClass).ShowDragImage(Self, 0, FLastDragPos.X, FLastDragPos.Y, False);
end;
class procedure TDragImageListResolution.WSRegisterClass;