mirror of
https://github.com/storytold/craft-libs.git
synced 2026-11-17 18:04:48 +00:00
DIAG: why an arena with members refuses a secondary press (space_hand_view_menu_keeps_escape_and_enter_from_the_pending_crop)
This commit is contained in:
@@ -853,6 +853,16 @@ fn outcome_in(ctx: &Context, read: &PassRead, arena: ArenaId, layer: Layer, enab
|
||||
own.rect.contains(at) && pointer::press_winner(ctx, at, targets).is_some_and(|(_, winner)| winner == own.id)
|
||||
}));
|
||||
if !enabled || !allowed {
|
||||
if !state.previous.is_empty() && ctx.input(|i| i.pointer.button_pressed(egui::PointerButton::Secondary)) {
|
||||
eprintln!(
|
||||
"DIAG space_hand_view_menu_keeps_escape_and_enter_from_the_pending_crop: refused root {root:?} enabled {enabled} takes {} targets {targets:?} click mine {} root rect {:?} winner {:?} layer top {:?} own layer {layer:?}",
|
||||
takes(false),
|
||||
mine(targets.click),
|
||||
state.root.map(|own| own.rect),
|
||||
pointer::press_winner(ctx, at, targets).map(|(winner, root)| (winner.owner, winner.part, root)),
|
||||
areas::layer_at(ctx, at),
|
||||
);
|
||||
}
|
||||
return None;
|
||||
}
|
||||
// egui gives no click target where a drag-only widget is on top (a resize grip over a layer's or a
|
||||
|
||||
Reference in New Issue
Block a user