From dcca9679329fd921e045e0fb94ee0caa85acf9d4 Mon Sep 17 00:00:00 2001 From: Isaac Mills Date: Tue, 19 Mar 2024 12:26:47 -0400 Subject: [PATCH] Fix bug with links overriding images --- src/app.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app.rs b/src/app.rs index 36a8872..0aaa759 100644 --- a/src/app.rs +++ b/src/app.rs @@ -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()));