diff options
author | 2024-12-07 10:32:54 -0500 | |
---|---|---|
committer | 2024-12-07 10:32:54 -0500 | |
commit | aea95b53fbfa4029ee6c3d15cf3c285f2340affe (patch) | |
tree | 796d04d1386a9d73cabf88529f91115e2cf25f6e /widget | |
parent | d6182299b9db7a1928b7740736d53196e33d66e3 (diff) | |
download | iced-aea95b53fbfa4029ee6c3d15cf3c285f2340affe.tar.gz iced-aea95b53fbfa4029ee6c3d15cf3c285f2340affe.tar.bz2 iced-aea95b53fbfa4029ee6c3d15cf3c285f2340affe.zip |
Emit pane_grid::DragEvent::Canceled within deadband
Diffstat (limited to 'widget')
-rw-r--r-- | widget/src/pane_grid.rs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/widget/src/pane_grid.rs b/widget/src/pane_grid.rs index 90a3fb1d..5c3b343c 100644 --- a/widget/src/pane_grid.rs +++ b/widget/src/pane_grid.rs @@ -628,6 +628,10 @@ where }; shell.publish(on_drag(event)); + } else { + shell.publish(on_drag(DragEvent::Canceled { + pane, + })); } } } |