mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-29 07:30:19 +02:00
TIpHtmlInternalPanel: Fix #40505: DoMouseWheel() should always return true
should always return true to confirm that the MouseWheel Event is handled by TIpHtmlInternalPanel
This commit is contained in:
parent
f26bc899a8
commit
fc7ca1f57d
@ -5512,6 +5512,10 @@ begin
|
||||
Perform(LM_VSCROLL, MAKELONG(SB_LINEDOWN, 0), 0)
|
||||
else
|
||||
Perform(LM_VSCROLL, MAKELONG(SB_LINEUP, 0), 0);
|
||||
|
||||
// should always return true to confirm that
|
||||
// the MouseWheel Event is handled by TIpHtmlInternalPanel
|
||||
Result:= true;
|
||||
end;
|
||||
|
||||
procedure TIpHtmlInternalPanel.Paint;
|
||||
@ -5900,13 +5904,19 @@ end;
|
||||
procedure TIpHtmlInternalPanel.WMHScroll(var Message: TLMHScroll);
|
||||
begin
|
||||
if HScroll.Visible then
|
||||
begin
|
||||
HScroll.ScrollMessage(Message);
|
||||
Message.Result := 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TIpHtmlInternalPanel.WMVScroll(var Message: TLMVScroll);
|
||||
begin
|
||||
if VScroll.Visible then
|
||||
begin
|
||||
VScroll.ScrollMessage(Message);
|
||||
Message.Result := 1;
|
||||
end;
|
||||
end;
|
||||
|
||||
procedure TIpHtmlInternalPanel.AsyncHotInvoke(data: ptrint);
|
||||
|
Loading…
Reference in New Issue
Block a user