Move viewport argument to last position in mouse_interaction methods
This keeps the order of the arguments consistent with `draw`.
This commit is contained in:
parent
c330bb1b69
commit
631e95ee0b
24 changed files with 61 additions and 41 deletions
|
|
@ -166,8 +166,8 @@ where
|
|||
fn mouse_interaction(
|
||||
&self,
|
||||
layout: Layout<'_>,
|
||||
viewport: &Rectangle,
|
||||
cursor_position: Point,
|
||||
viewport: &Rectangle,
|
||||
) -> mouse::Interaction {
|
||||
self.children
|
||||
.iter()
|
||||
|
|
@ -175,8 +175,8 @@ where
|
|||
.map(|(child, layout)| {
|
||||
child.widget.mouse_interaction(
|
||||
layout,
|
||||
viewport,
|
||||
cursor_position,
|
||||
viewport,
|
||||
)
|
||||
})
|
||||
.max()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue