Fix bug with links overriding images
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful
This commit is contained in:
parent
074e160cdb
commit
dcca967932
1 changed files with 1 additions and 1 deletions
|
@ -634,7 +634,7 @@ impl eframe::App for Portfolio {
|
||||||
// ui.painter().debug_rect(text_rect, Color32::GREEN, "");
|
// ui.painter().debug_rect(text_rect, Color32::GREEN, "");
|
||||||
if let Some(url_map) = url_map {
|
if let Some(url_map) = url_map {
|
||||||
let text_response = ui.allocate_rect(text_rect, Sense::click());
|
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 buffer = buffer.write();
|
||||||
let mut editor =
|
let mut editor =
|
||||||
Editor::new(BufferRef::Borrowed(buffer.deref_mut()));
|
Editor::new(BufferRef::Borrowed(buffer.deref_mut()));
|
||||||
|
|
Loading…
Reference in a new issue