Fix pan_zoom demo constraining windows (#5137)

fixes 

* Closes #5135
* [x] I have followed the instructions in the PR template
This commit is contained in:
lucasmerlin 2024-09-22 19:13:01 +02:00 committed by GitHub
parent 02e795277f
commit c9df2f0783
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 0 deletions

View File

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