Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix: panic when dragging window between monitors of different pixels_per_point #4868

Merged
merged 14 commits into from
Sep 17, 2024

Conversation

rustbasic
Copy link
Contributor

@rustbasic rustbasic commented Jul 23, 2024

Fix: panic when dragging window between monitors of different pixels_per_point

This will continue to help us as we develop egui.
I hope you agree with my defense of panic.

There is also a way to add log if necessary.

                log::debug!("Anti-panic behavior occurs");

crates/egui/src/layers.rs Outdated Show resolved Hide resolved
crates/egui/src/context.rs Outdated Show resolved Hide resolved
crates/egui/src/context.rs Outdated Show resolved Hide resolved
@emilk emilk added bug Something is broken egui labels Sep 17, 2024
@emilk emilk merged commit 1474c17 into emilk:master Sep 17, 2024
22 of 23 checks passed
hacknus pushed a commit to hacknus/egui that referenced this pull request Oct 30, 2024
…per_point (emilk#4868)

Fix: panic when dragging window between monitors of different
pixels_per_point

This will continue to help us as we develop `egui`.
I hope you agree with my defense of `panic`.

* Relate emilk#3959
* Relate emilk#4088

* Closes emilk#4178
* Closes emilk#4179


There is also a way to add log if necessary.
```
                log::debug!("Anti-panic behavior occurs");
```

---------

Co-authored-by: Emil Ernerfeldt <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something is broken egui
Projects
None yet
2 participants