diff --git a/src/app.rs b/src/app.rs index feda56a..36a8872 100644 --- a/src/app.rs +++ b/src/app.rs @@ -764,10 +764,13 @@ impl eframe::App for Portfolio { ), ); - hi_image - .clone() - .tint(Color32::WHITE.gamma_multiply(zoom_view_opacity)) - .paint_at(&ui, image_rect.lerp_towards(&fs_rect, t)); + if t > 0.0 { + hi_image.clone() + } else { + image.clone() + } + .tint(Color32::WHITE.gamma_multiply(zoom_view_opacity)) + .paint_at(&ui, image_rect.lerp_towards(&fs_rect, t)); } else { image .clone()