Skip to content

Commit

Permalink
feat: double click to reset resizing
Browse files Browse the repository at this point in the history
  • Loading branch information
zkrising committed Jun 30, 2023
1 parent 5f45dee commit 1911be6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/widgets/dock_area/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,6 +346,10 @@ impl<'tree, Tab> DockArea<'tree, Tab> {
*fraction = (*fraction + delta / range).clamp(min, max);
}
}

if response.double_clicked() {
*fraction = 0.5;
}
}
}
}
Expand Down

0 comments on commit 1911be6

Please sign in to comment.