Skip to content

Commit

Permalink
Fix overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
Adanos020 committed Apr 1, 2024
1 parent c834a83 commit 41bec1d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/widgets/dock_area/show/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -84,14 +84,14 @@ impl<'tree, Tab> DockArea<'tree, Tab> {
if let (Some(source), Some(hover)) = (drag_data, hover_data) {
let style = self.style.as_ref().unwrap();
state.set_drag_and_drop(source, hover, ui.ctx(), style);
let tab_dst = {
let layer_id = LayerId::new(Order::Foreground, "foreground".into());
ui.with_layer_id(layer_id, |ui| {
self.show_drag_drop_overlay(ui, &mut state, tab_viewer)
})
.inner
};
if ui.input(|i| i.pointer.primary_released()) {
let tab_dst = {
let layer_id = LayerId::new(Order::Foreground, "foreground".into());
ui.with_layer_id(layer_id, |ui| {
self.show_drag_drop_overlay(ui, &mut state, tab_viewer)
})
.inner
};
if let Some(destination) = tab_dst {
let source = {
match state.dnd.as_ref().unwrap().drag.src {
Expand Down

0 comments on commit 41bec1d

Please sign in to comment.