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:
parent
32eda50bbd
commit
b635c10837
2 changed files with 7 additions and 4 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue