Add offset logic, commented

With large drag surfaces, and no tranparency, this seems a bit akward
when not dragging from near top left. May be better with cursor
indicator.
This commit is contained in:
Ian Douglas Scott 2024-05-01 12:09:07 -07:00
parent 32eda50bbd
commit b635c10837
2 changed files with 7 additions and 4 deletions

View file

@ -291,9 +291,10 @@ fn toplevel_previews_entry<'a>(
// shown.
let preview = crate::widgets::visibility_wrapper(toplevel_preview(toplevel), !is_being_dragged);
iced::widget::dnd_source(preview)
.on_drag(|size, _offset| {
.on_drag(|size, offset| {
Msg::StartDrag(
size,
offset,
DragSurface::Toplevel {
handle: toplevel.handle.clone(),
output: output.clone(),