mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-10 04:48:36 +02:00
lcl: controlscrollbar: set scroll message result as handled if position changed.
git-svn-id: trunk@52426 -
This commit is contained in:
parent
e0169fef8e
commit
f3d729dee2
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user