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()