mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-03 00:18:15 +02:00
Cocoa: Fix the scrollWheel event processing logic on TCocoaScrollBar
This commit is contained in:
parent
5a7f3952aa
commit
dca0f86606
@ -1062,11 +1062,10 @@ end;
|
||||
|
||||
procedure TCocoaScrollBar.scrollWheel(event: NSEvent);
|
||||
begin
|
||||
if suppressLCLMouse then
|
||||
inherited scrollWheel(event)
|
||||
if Assigned(callback) then
|
||||
callback.scrollWheel(event)
|
||||
else
|
||||
if not Assigned(callback) or not callback.scrollWheel(event) then
|
||||
inherited scrollWheel(event);
|
||||
Inherited;
|
||||
end;
|
||||
|
||||
function TCocoaScrollBar.acceptsFirstResponder: LCLObjCBoolean;
|
||||
|
Loading…
Reference in New Issue
Block a user