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.
This commit is contained in:
Clark Moody 2021-05-24 16:37:47 -05:00
parent 1a2fd4e743
commit d4c5f3ee95
2 changed files with 26 additions and 13 deletions

View file

@ -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
},