summaryrefslogtreecommitdiffstats
path: root/graphics
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-12-18 11:04:07 +0100
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2020-12-18 11:20:18 +0100
commit43ef85ae5c5b8901642e0832456ed907635600ff (patch)
treef50ae0dc7a220c7a3792ef00543f65b0745e3024 /graphics
parent8245a1176648f8df803f9820bd5ceac71d6a031a (diff)
downloadiced-43ef85ae5c5b8901642e0832456ed907635600ff.tar.gz
iced-43ef85ae5c5b8901642e0832456ed907635600ff.tar.bz2
iced-43ef85ae5c5b8901642e0832456ed907635600ff.zip
Rename `starting_cursor_pos` to `cursor_grabbed_at` in `image::Viewer`
Diffstat (limited to 'graphics')
-rw-r--r--graphics/src/widget/image/viewer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/graphics/src/widget/image/viewer.rs b/graphics/src/widget/image/viewer.rs
index 804f2be6..28dffc4f 100644
--- a/graphics/src/widget/image/viewer.rs
+++ b/graphics/src/widget/image/viewer.rs
@@ -39,7 +39,7 @@ where
}
},
{
- if state.is_cursor_clicked() {
+ if state.is_cursor_grabbed() {
mouse::Interaction::Grabbing
} else if is_mouse_over
&& (image_size.width > bounds.width