Fix image zooming
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
Isaac Mills 2024-03-18 23:43:06 -04:00
parent e3bb9c9b21
commit d464039cc5
Signed by: fnmain
GPG key ID: B67D7410F33A0F61

View file

@ -694,7 +694,8 @@ impl eframe::App for Portfolio {
let time_offset = let time_offset =
m.data.get_temp_mut_or_default::<f64>(image_response.id); m.data.get_temp_mut_or_default::<f64>(image_response.id);
if image_response.clicked() && !self.image_zoomed { if image_response.clicked() && !self.image_zoomed && self.zoomed
{
link_clicked = true; link_clicked = true;
*time_offset = time; *time_offset = time;
self.last_image_zoomed = image_response.id; self.last_image_zoomed = image_response.id;