Skip to content

Commit

Permalink
Fix pan_zoom demo constraining windows (#5137)
Browse files Browse the repository at this point in the history
fixes 

* Closes #5135
* [x] I have followed the instructions in the PR template
  • Loading branch information
lucasmerlin authored Sep 22, 2024
1 parent 02e7952 commit c9df2f0
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 c9df2f0

Please sign in to comment.