diff options
author | 2021-11-02 15:03:29 +0700 | |
---|---|---|
committer | 2021-11-02 15:03:29 +0700 | |
commit | 631e95ee0be01dc7f5e5183e1429972aee37787f (patch) | |
tree | b7534cb783d02fefa2b2c040e5564efcfc24f487 /native/src/widget/container.rs | |
parent | c330bb1b69d55d767fa5bb2e0fcc059fbbe07d07 (diff) | |
download | iced-631e95ee0be01dc7f5e5183e1429972aee37787f.tar.gz iced-631e95ee0be01dc7f5e5183e1429972aee37787f.tar.bz2 iced-631e95ee0be01dc7f5e5183e1429972aee37787f.zip |
Move `viewport` argument to last position in `mouse_interaction` methods
This keeps the order of the arguments consistent with `draw`.
Diffstat (limited to 'native/src/widget/container.rs')
-rw-r--r-- | native/src/widget/container.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/container.rs b/native/src/widget/container.rs index 5ad07d6d..9e3d0193 100644 --- a/native/src/widget/container.rs +++ b/native/src/widget/container.rs @@ -182,13 +182,13 @@ where fn mouse_interaction( &self, layout: Layout<'_>, - viewport: &Rectangle, cursor_position: Point, + viewport: &Rectangle, ) -> mouse::Interaction { self.content.widget.mouse_interaction( layout.children().next().unwrap(), - viewport, cursor_position, + viewport, ) } |