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
This commit is contained in:
Sophie Herold 2023-06-11 14:48:03 +02:00
parent ae40ad4249
commit 2faef84321

View file

@ -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);
}
}