Skip to content

Commit

Permalink
Change order of dragged item's area to be Order::Tooltip
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasmerlin committed Jul 11, 2024
1 parent 8d505ba commit 0d642ee
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/egui_dnd/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

## Unreleased

- change area order of dragged item to be `Order::Tooltip`, so it will be shown above any other areas

## 0.9.0

- update egui to 0.28
Expand Down
1 change: 1 addition & 0 deletions crates/egui_dnd/src/item.rs
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@ impl<'a> Item<'a> {
egui::Area::new(Id::new("draggable_item"))
.interactable(false)
.fixed_pos(pos)
.order(Order::Tooltip)
.show(ui.ctx(), |ui| {
ui.scope(|ui| {
if let Some(size) = size.or(dnd_state.detection_state.dragged_item_size()) {
Expand Down

0 comments on commit 0d642ee

Please sign in to comment.