From 97ce6754ddf870ff6701d22dcb468421549f22e9 Mon Sep 17 00:00:00 2001 From: electria Date: Thu, 30 Jul 2026 19:21:12 -0700 Subject: [PATCH] feat: change scale limits zooming in a lot is sometimes useful, but zooming out is basically useless and annoying (when you want to put it back to covering the full window) if you really need to zoom out, you can always resize the window --- src/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main.rs b/src/main.rs index 9ff87f7..7a4cba4 100644 --- a/src/main.rs +++ b/src/main.rs @@ -42,6 +42,8 @@ impl State { if let Some(allocation) = self.image_display.as_ref() { widget::image::viewer(allocation.handle().clone()) .filter_method(self.image_filter) + .max_scale(50.) + .min_scale(1.) .width(Length::Fill) .height(Length::Fill) .into()