summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-11-02 15:03:29 +0700
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2021-11-02 15:03:29 +0700
commit631e95ee0be01dc7f5e5183e1429972aee37787f (patch)
treeb7534cb783d02fefa2b2c040e5564efcfc24f487 /graphics
parentc330bb1b69d55d767fa5bb2e0fcc059fbbe07d07 (diff)
downloadiced-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 'graphics')
-rw-r--r--graphics/src/widget/canvas.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/canvas.rs b/graphics/src/widget/canvas.rs
index ad9704d0..639c2a9b 100644
--- a/graphics/src/widget/canvas.rs
+++ b/graphics/src/widget/canvas.rs
@@ -191,8 +191,8 @@ where
fn mouse_interaction(
&self,
layout: Layout<'_>,
- _viewport: &Rectangle,
cursor_position: Point,
+ _viewport: &Rectangle,
) -> mouse::Interaction {
let bounds = layout.bounds();
let cursor = Cursor::from_window_position(cursor_position);