Write documentation for new PaneGrid API
This commit is contained in:
parent
733ec6b2ea
commit
e3cd947437
5 changed files with 66 additions and 22 deletions
|
|
@ -148,8 +148,8 @@ where
|
|||
|
||||
if let Some((title_bar, title_bar_layout)) = title_bar {
|
||||
let show_controls = bounds.contains(cursor_position);
|
||||
let is_over_draggable =
|
||||
title_bar.is_over_draggable(title_bar_layout, cursor_position);
|
||||
let is_over_pick_area =
|
||||
title_bar.is_over_pick_area(title_bar_layout, cursor_position);
|
||||
|
||||
let (title_bar_primitive, title_bar_interaction) = title_bar.draw(
|
||||
self,
|
||||
|
|
@ -167,7 +167,7 @@ where
|
|||
body_primitive,
|
||||
],
|
||||
},
|
||||
if is_over_draggable {
|
||||
if is_over_pick_area {
|
||||
mouse::Interaction::Grab
|
||||
} else if title_bar_interaction > body_interaction {
|
||||
title_bar_interaction
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue