mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-09-04 12:00:18 +02:00
cocoa: preventing the drag event from going to parent controls. #34878
git-svn-id: trunk@60122 -
This commit is contained in:
parent
f8c805458d
commit
b0e4ed33be
@ -599,7 +599,11 @@ end;
|
||||
procedure TCocoaCustomControl.mouseDragged(event: NSEvent);
|
||||
begin
|
||||
if not Assigned(callback) or not callback.MouseMove(event) then
|
||||
inherited mouseDragged(event);
|
||||
// calling inherited causes the drag event to be passed to the
|
||||
// parent controls
|
||||
|
||||
//inherited mouseDragged(event);
|
||||
;
|
||||
end;
|
||||
|
||||
procedure TCocoaCustomControl.mouseEntered(event: NSEvent);
|
||||
|
Loading…
Reference in New Issue
Block a user