From c9df2f078344ebb23310d528882cfe25e4aa24fb Mon Sep 17 00:00:00 2001 From: lucasmerlin Date: Sun, 22 Sep 2024 19:13:01 +0200 Subject: [PATCH] Fix pan_zoom demo constraining windows (#5137) fixes * Closes #5135 * [x] I have followed the instructions in the PR template --- crates/egui_demo_lib/src/demo/pan_zoom.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/crates/egui_demo_lib/src/demo/pan_zoom.rs b/crates/egui_demo_lib/src/demo/pan_zoom.rs index f8f4515dffd..6367946faef 100644 --- a/crates/egui_demo_lib/src/demo/pan_zoom.rs +++ b/crates/egui_demo_lib/src/demo/pan_zoom.rs @@ -114,6 +114,7 @@ impl crate::View for PanZoom { let id = egui::Area::new(id.with(("subarea", i))) .default_pos(pos) .order(egui::Order::Middle) + .constrain(false) .show(ui.ctx(), |ui| { ui.set_clip_rect(transform.inverse() * rect); egui::Frame::default()