Designer: Cursor Cache Old Pos comparison adjusted (Similar to ded870b)

This commit is contained in:
rich2014 2023-07-27 21:36:56 +08:00
parent 203dbd08fd
commit ead28bdcc6

View File

@ -2642,8 +2642,6 @@ begin
OldMouseMovePos := LastMouseMovePos;
LastMouseMovePos := GetFormRelativeMousePosition(Form);
if (OldMouseMovePos.X = LastMouseMovePos.X) and (OldMouseMovePos.Y = LastMouseMovePos.Y) then
Exit;
MouseMoveComponent := MouseDownComponent;
if MouseMoveComponent = nil then
@ -2684,6 +2682,9 @@ begin
Exit;
end;
if (OldMouseMovePos.X = LastMouseMovePos.X) and (OldMouseMovePos.Y = LastMouseMovePos.Y) then
Exit;
if (Selection.SelectionForm = nil) or (Selection.SelectionForm = Form) then
begin
if Button = mbLeft then // left button pressed