cocoa: preventing the drag event from going to parent controls. #34878

git-svn-id: trunk@60122 -
This commit is contained in:
dmitry 2019-01-20 14:30:26 +00:00
parent f8c805458d
commit b0e4ed33be

View File

@ -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);