Request redraw in image viewer update

This commit is contained in:
Cory Forsstrom 2025-02-06 13:06:11 -08:00
parent 4bbb5cbc1f
commit a8b1aef0a4
No known key found for this signature in database
GPG key ID: 64D6B5851FFCAC9E

View file

@ -215,6 +215,7 @@ where
}
}
shell.request_redraw();
shell.capture_event();
}
Event::Mouse(mouse::Event::ButtonPressed(mouse::Button::Left)) => {
@ -226,6 +227,8 @@ where
state.cursor_grabbed_at = Some(cursor_position);
state.starting_offset = state.current_offset;
shell.request_redraw();
shell.capture_event();
}
Event::Mouse(mouse::Event::ButtonReleased(mouse::Button::Left)) => {
@ -233,6 +236,7 @@ where
if state.cursor_grabbed_at.is_some() {
state.cursor_grabbed_at = None;
shell.request_redraw();
shell.capture_event();
}
}
@ -273,6 +277,7 @@ where
};
state.current_offset = Vector::new(x, y);
shell.request_redraw();
shell.capture_event();
}
}