Skip to content

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

Merged
emilk merged 14 commits intoemilk:masterfrom
rustbasic:patch87
Sep 17, 2024
Merged

Fix: panic when dragging window between monitors of different pixels_per_point#4868
emilk merged 14 commits intoemilk:masterfrom
rustbasic:patch87

Conversation

@rustbasic
Copy link
Copy Markdown
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");

rustbasic and others added 3 commits September 17, 2024 23:16
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
@rustbasic rustbasic requested a review from emilk September 17, 2024 14:43
@emilk emilk added bug Something is broken egui labels Sep 17, 2024
@emilk emilk merged commit 1474c17 into emilk:master Sep 17, 2024
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 <emil.ernerfeldt@gmail.com>
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

Development

Successfully merging this pull request may close these issues.

There is on very rare occasions a case where a panic occurred at line 152 of layers.rs There is on very rare occasions a case where a panic occurred

2 participants