mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-04-09 23:08:05 +02:00
Cocoa: Fix the issue that the ScrollBars of corresponding TScrollingWinControl were not updated correctly
This commit is contained in:
parent
eacd34023f
commit
dfc1bbeec2
@ -743,9 +743,10 @@ end;
|
||||
|
||||
procedure TCocoaScrollView.scrollWheel(theEvent: NSEvent);
|
||||
begin
|
||||
if self.hasHorizontalScroller or self.hasVerticalScroller then
|
||||
inherited scrollWheel( theEvent )
|
||||
else if Assigned(self.enclosingScrollView) then
|
||||
if self.hasHorizontalScroller or self.hasVerticalScroller then begin
|
||||
inherited scrollWheel( theEvent );
|
||||
callback.scrollWheel( theEvent );
|
||||
end else if Assigned(self.enclosingScrollView) then
|
||||
self.enclosingScrollView.scrollWheel( theEvent )
|
||||
else
|
||||
inherited scrollWheel( theEvent );
|
||||
|
Loading…
Reference in New Issue
Block a user