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
|
|
@ -381,8 +381,8 @@ where
|
|||
|
||||
let base_interaction = self.root.widget.mouse_interaction(
|
||||
Layout::new(&self.base.layout),
|
||||
&viewport,
|
||||
cursor_position,
|
||||
&viewport,
|
||||
);
|
||||
|
||||
let Self {
|
||||
|
|
@ -403,8 +403,8 @@ where
|
|||
root.overlay(Layout::new(&base.layout)).map(|overlay| {
|
||||
let overlay_interaction = overlay.mouse_interaction(
|
||||
Layout::new(&layer.layout),
|
||||
&viewport,
|
||||
cursor_position,
|
||||
&viewport,
|
||||
);
|
||||
|
||||
let overlay_bounds = layer.layout.bounds();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue