From 2faef84321e23d069bf928593187d6ad5f462880 Mon Sep 17 00:00:00 2001 From: Sophie Herold Date: Sun, 11 Jun 2023 14:48:03 +0200 Subject: [PATCH] image: Also set zoom target when not animating This currently only seems to affect HighRes scrolling where SVGs are not rendered for the zoom level. Closes #185 --- src/widgets/image.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/widgets/image.rs b/src/widgets/image.rs index d693bf1..a18a6f7 100644 --- a/src/widgets/image.rs +++ b/src/widgets/image.rs @@ -1418,7 +1418,8 @@ impl LpImage { animation.set_value_to(zoom); animation.play(); } else { - self.set_zoom(zoom) + self.set_zoom(zoom); + self.set_zoom_target(zoom); } }