Cocoa: Fix MouseMove issue related to PopupMenu

This commit is contained in:
rich2014 2024-01-13 00:29:06 +08:00
parent 6f8a824944
commit 9a11ab871d

View File

@ -1144,7 +1144,7 @@ begin
else else
begin begin
if Event.window<>GetCocoaWindowAtPos(GetScreenPointFromEvent(Event)) then if Event.window<>GetCocoaWindowAtPos(GetScreenPointFromEvent(Event)) then
exit( true ); exit;
rect:=Target.BoundsRect; rect:=Target.BoundsRect;
OffsetRect(rect, -rect.Left, -rect.Top); OffsetRect(rect, -rect.Left, -rect.Top);