Rename starting_cursor_pos to cursor_grabbed_at in image::Viewer

This commit is contained in:
Héctor Ramón Jiménez 2020-12-18 11:04:07 +01:00
parent 8245a11766
commit 43ef85ae5c
2 changed files with 11 additions and 12 deletions

View file

@ -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