Files
lightcraft/docs
Martin KurnothandClaude Fable 5.1 0f819854c0 Context menus: a right-click elsewhere on the same widget moves its open menu (#1877)
A right-click on a photo (or any widget) while its own context menu was open
flashed the menu at the new spot and closed it again on the same frame. egui's
`Popup::show` judges "was open last frame" by the popup's id, so the click that
reopened the menu at the pointer also counted as a click while open and closed
it under `CloseOnClick`. A right-click on a different widget was fine.

`widgets::context_menu` wraps `Popup::context_menu` and ignores clicks on the
frame of the right-click that opens or moves the menu; every context menu
(30 sites) goes through it, and `TextField` applies the same rule to its
close-on-click-outside menu (`widgets::context_menu_close`).

Tests: `right_clicking_elsewhere_moves_the_context_menu` (headless grid; failed
at the second frame before the fix) and `right_clicking_again_moves_the_menu`
(text field). docs/ui-parity.md: Context menus row and revision history.

Fixes #1877

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-10-15 20:01:23 +02:00
..
2026-10-15 00:44:42 -04:00
2026-10-13 14:34:54 +02:00
2026-10-15 01:42:11 -04:00
2026-10-15 01:42:11 -04:00
2026-10-15 03:24:51 -04:00
2026-10-14 22:32:33 -04:00
2026-10-14 22:33:11 -04:00
2026-10-08 20:20:17 +00:00
2026-10-15 02:39:01 -04:00
2026-10-15 01:42:11 -04:00
2026-10-15 01:42:11 -04:00
2026-10-11 12:03:53 +00:00
2026-10-14 01:29:30 -04:00
2026-10-15 01:48:43 -04:00
2026-10-14 23:54:06 -04:00
2026-10-15 03:40:37 -04:00
2026-10-15 03:40:15 -04:00
2026-10-15 00:50:08 -04:00