Left panel: remove the temporary debug prints

This commit is contained in:
skylartaylor
2026-11-24 20:29:22 +01:00
parent 87af0295e2
commit f74e04707c
4 changed files with 0 additions and 22 deletions
-16
View File
@@ -293,22 +293,6 @@ impl LightcraftApp {
if still_aimed {
return false;
}
{
// TEMPORARY DEBUG
let hit = latest_hit;
let at_layer = ctx.layer_id_at(target.at);
eprintln!(
"DEBUGREFUSE id={} at={:?} target.rect={:?} latest={:?} hit={:?} at_layer={:?} top_modal={:?} layers_at_order={:?}",
target.id,
target.at,
target.rect,
latest,
hit.map(|h| (h.layer_id, h.interact_rect)),
at_layer,
ctx.memory(|m| m.top_modal_layer()),
ctx.memory(|m| m.areas().visible_layer_ids().into_iter().collect::<Vec<_>>()),
);
}
let outside_registered = !target.rect.contains(target.at);
let reason = match latest {
None => "disappeared",
-4
View File
@@ -58,9 +58,6 @@ pub(super) fn albums_rows(app: &mut LightcraftApp, ui: &mut egui::Ui, reveal: Op
crate::widgets::register(ui, format!("albumProblem:{}", m.album.id.0), row.rect);
}
}
if ui.input(|i| i.pointer.primary_down() || i.pointer.primary_released()) {
eprintln!("DBGALB photos={:?} shown={} response_enabled={:?} released={}", app.ui.dragging_photos, out.shown.len(), out.response.as_ref().map(|r| r.enabled()), ui.input(|i| i.pointer.primary_released()));
}
for row in &out.shown {
let Some(m) = meta.get(&row.key) else { continue };
let mut open = m.open;
@@ -606,7 +603,6 @@ fn drop_target(app: &mut LightcraftApp, ui: &mut egui::Ui, rect: Rect, a: &Album
let Some(ids) = app.ui.dragging_photos.clone() else { return };
// only where the row can be seen: not scrolled out of the sidebar or beneath the pinned header
let over = pointer_over_row(ui, rect);
eprintln!("DBGDROP album={} over={over} rect={rect:?} pos={:?} layer_at={:?} ui_layer={:?} released={}", a.id.0, ui.input(|i| i.pointer.latest_pos()), ui.input(|i| i.pointer.latest_pos()).and_then(|p| ui.ctx().layer_id_at(p)), ui.layer_id(), ui.input(|i| i.pointer.primary_released()));
if !over {
return;
}
-1
View File
@@ -695,7 +695,6 @@ pub(super) fn host_menu(
.anchor(anchor)
.open(Bind::bound(&mut open))
.show(ui, |ui, _| body(ui, &key));
eprintln!("DBGMENU slot={slot} closed={:?} open={open} overlay_open={}", shown.output.closed, craft::ui::runtime::overlay::any_open(ui.ctx(), craft::ui::runtime::overlay::OpenFilter::Any));
if shown.output.closed.is_some() || !open {
ui.data_mut(|d| d.remove::<(String, MenuAt)>(stored));
}
@@ -129,7 +129,6 @@ pub(crate) fn section_drop_before(placed: &[PlacedSection], y: f32) -> Option<Si
pub(super) fn adopt_drags(app: &mut LightcraftApp, ui: &egui::Ui) {
let ctx = ui.ctx();
let down = ui.input(|i| i.pointer.primary_down());
eprintln!("DBGADOPT down={down} session_section={:?} session_album={:?} app_section={:?} app_album={:?} started={}", craft::ui::runtime::drag::active::<SectionDrag>(ctx).map(|p| p.section), craft::ui::runtime::drag::active::<AlbumDrag>(ctx).map(|p| p.0), app.ui.dragging_section, app.ui.dragging_album, craft::ui::runtime::drag::started(ctx));
let (section, album) = (craft::ui::runtime::drag::active::<SectionDrag>(ctx), craft::ui::runtime::drag::active::<AlbumDrag>(ctx));
let (section_flag, album_flag) = (egui::Id::unique("left-section-from-session"), egui::Id::unique("left-album-from-session"));
let adopted = |flag: egui::Id| ui.data(|d| d.get_temp::<bool>(flag)).unwrap_or(false);