mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-18 04:59:08 +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);
|
procedure TCocoaScrollView.scrollWheel(theEvent: NSEvent);
|
||||||
begin
|
begin
|
||||||
if self.hasHorizontalScroller or self.hasVerticalScroller then
|
if self.hasHorizontalScroller or self.hasVerticalScroller then begin
|
||||||
inherited scrollWheel( theEvent )
|
inherited scrollWheel( theEvent );
|
||||||
else if Assigned(self.enclosingScrollView) then
|
callback.scrollWheel( theEvent );
|
||||||
|
end else if Assigned(self.enclosingScrollView) then
|
||||||
self.enclosingScrollView.scrollWheel( theEvent )
|
self.enclosingScrollView.scrollWheel( theEvent )
|
||||||
else
|
else
|
||||||
inherited scrollWheel( theEvent );
|
inherited scrollWheel( theEvent );
|
||||||
|
Loading…
Reference in New Issue
Block a user