Get project2 tests green

This commit is contained in:
Nathan Sobo 2023-11-01 20:14:40 -06:00
parent 401ddc6f49
commit 53066df522
5 changed files with 31 additions and 23 deletions

View file

@ -51,7 +51,7 @@ impl<V: 'static> Pane<V> {
.id("drag-target")
.drag_over::<ExternalPaths>(|d| d.bg(red()))
.on_drop(|_, files: View<ExternalPaths>, cx| {
dbg!("dropped files!", files.read(cx));
eprintln!("dropped files! {:?}", files.read(cx));
})
.absolute()
.inset_0(),

View file

@ -130,7 +130,7 @@ impl Tab {
.on_drag(move |_view, cx| cx.build_view(|cx| drag_state.clone()))
.drag_over::<TabDragState>(|d| d.bg(black()))
.on_drop(|_view, state: View<TabDragState>, cx| {
dbg!(state.read(cx));
eprintln!("{:?}", state.read(cx));
})
.px_2()
.py_0p5()