diff options
author | 2024-02-27 02:19:41 +0100 | |
---|---|---|
committer | 2024-02-27 02:19:41 +0100 | |
commit | c723c101d4e5be45ad6dbe49d92cd7980b954a58 (patch) | |
tree | eaa466526366b912e15c7ea4c64996f906b9a96d /widget/src/pane_grid/state.rs | |
parent | 8bb1587a748f2c579ce8ea7f5c584cf4a6361e83 (diff) | |
download | iced-c723c101d4e5be45ad6dbe49d92cd7980b954a58.tar.gz iced-c723c101d4e5be45ad6dbe49d92cd7980b954a58.tar.bz2 iced-c723c101d4e5be45ad6dbe49d92cd7980b954a58.zip |
Fix `PaneGrid` mouse interaction when clicking a pane
Diffstat (limited to 'widget/src/pane_grid/state.rs')
-rw-r--r-- | widget/src/pane_grid/state.rs | 17 |
1 files changed, 0 insertions, 17 deletions
diff --git a/widget/src/pane_grid/state.rs b/widget/src/pane_grid/state.rs index 5d1fe254..481cd770 100644 --- a/widget/src/pane_grid/state.rs +++ b/widget/src/pane_grid/state.rs @@ -403,15 +403,6 @@ pub enum Action { /// /// [`PaneGrid`]: super::PaneGrid Idle, - /// A [`Pane`] in the [`PaneGrid`] is being clicked. - /// - /// [`PaneGrid`]: super::PaneGrid - Clicking { - /// The [`Pane`] being clicked. - pane: Pane, - /// The starting [`Point`] of the click interaction. - origin: Point, - }, /// A [`Pane`] in the [`PaneGrid`] is being dragged. /// /// [`PaneGrid`]: super::PaneGrid @@ -441,14 +432,6 @@ impl Action { } } - /// Returns the current [`Pane`] that is being clicked, if any. - pub fn clicked_pane(&self) -> Option<(Pane, Point)> { - match *self { - Action::Clicking { pane, origin, .. } => Some((pane, origin)), - _ => None, - } - } - /// Returns the current [`Split`] that is being dragged, if any. pub fn picked_split(&self) -> Option<(Split, Axis)> { match *self { |