summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Clark Moody <clark@clarkmoody.com>2021-05-24 16:37:47 -0500
committerLibravatar Clark Moody <clark@clarkmoody.com>2021-05-24 16:37:47 -0500
commitd4c5f3ee950262c578c7b9b2a4aab60d3c5edaed (patch)
tree8659fb678d989a2f97876b20aa501d5415af4b02 /graphics
parent1a2fd4e743fe2b5237a4b51fa0ab2ddc660dfd5a (diff)
downloadiced-d4c5f3ee950262c578c7b9b2a4aab60d3c5edaed.tar.gz
iced-d4c5f3ee950262c578c7b9b2a4aab60d3c5edaed.tar.bz2
iced-d4c5f3ee950262c578c7b9b2a4aab60d3c5edaed.zip
Enable event handling within the title elements
Shrink the pick area to avoid both the controls and the title elements. Handle events and merge title area event status with control events.
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/widget/pane_grid.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/graphics/src/widget/pane_grid.rs b/graphics/src/widget/pane_grid.rs
index d06f8c6c..93b4b672 100644
--- a/graphics/src/widget/pane_grid.rs
+++ b/graphics/src/widget/pane_grid.rs
@@ -218,10 +218,10 @@ where
body_primitive,
],
},
- if is_over_pick_area {
- mouse::Interaction::Grab
- } else if title_bar_interaction > body_interaction {
+ if title_bar_interaction > body_interaction {
title_bar_interaction
+ } else if is_over_pick_area {
+ mouse::Interaction::Grab
} else {
body_interaction
},