mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
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:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user