Apply bounds check when grabbing image::Viewer
This commit is contained in:
parent
aae8e4f5cf
commit
8efd32c51b
1 changed files with 1 additions and 1 deletions
|
|
@ -216,7 +216,7 @@ where
|
|||
event::Status::Captured
|
||||
}
|
||||
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
|
||||
let Some(cursor_position) = cursor.position() else {
|
||||
let Some(cursor_position) = cursor.position_over(bounds) else {
|
||||
return event::Status::Ignored;
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue