Fix bug with links overriding images
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-03-19 12:26:47 -04:00
parent 074e160cdb
commit dcca967932
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -634,7 +634,7 @@ impl eframe::App for Portfolio {
// ui.painter().debug_rect(text_rect, Color32::GREEN, "");
if let Some(url_map) = url_map {
let text_response = ui.allocate_rect(text_rect, Sense::click());
if text_response.clicked() {
if text_response.clicked() && !self.image_zoomed {
let mut buffer = buffer.write();
let mut editor =
Editor::new(BufferRef::Borrowed(buffer.deref_mut()));