Merge pull request #3164 from daboe01/cpmenu-sticky-fix

Cpmenu top level item sticky selection fix
This commit is contained in:
daboe01 authored and GitHub committed 2025-12-26 12:21:47 +01:00
commit e28df7d7d7
1 file changed
+5
+5
View File
@@ -492,6 +492,11 @@
return index;
}
// If the mouse is within the menu bar bounds but not over an item
// (e.g. dragging far left or right), force the menu to unhighlight.
if (CGRectContainsPoint([[self contentView] bounds], aPoint))
[_menu _highlightItemAtIndex:CPNotFound];
return CPNotFound;
}