lcl: controlscrollbar: set scroll message result as handled if position changed.

git-svn-id: trunk@52426 -
This commit is contained in:
ondrej 2016-06-02 16:28:55 +00:00
parent e0169fef8e
commit f3d729dee2

View File

@ -312,8 +312,12 @@ begin
NewPos := 0;
if NewPos > FRange then
NewPos := FRange;
InvalidateScrollInfo;
SetPosition(NewPos);
if NewPos<>FPosition then
begin
InvalidateScrollInfo;
SetPosition(NewPos);
Message.Result := 1;
end;
end;
procedure TControlScrollBar.ControlUpdateScrollBars;