Skip to content

Commit

Permalink
Fix pan_zoom demo constraining windows
Browse files Browse the repository at this point in the history
fixes #5135
  • Loading branch information
lucasmerlin committed Sep 20, 2024
1 parent 06f7094 commit d8a22cb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions crates/egui_demo_lib/src/demo/pan_zoom.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit d8a22cb

Please sign in to comment.