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:
parent
1a2fd4e743
commit
d4c5f3ee95
2 changed files with 26 additions and 13 deletions
|
|
@ -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
|
||||
},
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue