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
|
|
@ -426,8 +426,8 @@ where
|
|||
fn mouse_interaction(
|
||||
&self,
|
||||
layout: Layout<'_>,
|
||||
_viewport: &Rectangle,
|
||||
cursor_position: Point,
|
||||
_viewport: &Rectangle,
|
||||
) -> mouse::Interaction {
|
||||
let bounds = layout.bounds();
|
||||
let content_layout = layout.children().next().unwrap();
|
||||
|
|
@ -453,11 +453,11 @@ where
|
|||
|
||||
self.content.mouse_interaction(
|
||||
content_layout,
|
||||
cursor_position,
|
||||
&Rectangle {
|
||||
y: bounds.y + offset as f32,
|
||||
..bounds
|
||||
},
|
||||
cursor_position,
|
||||
)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue