egui
egui copied to clipboard
rounded corners don't scale properly in the new pan zoom demo
Describe the bug Rounded corners inside the new pan zoom demo don't scale properly when zooming.
To Reproduce
In the demo code, increase the corner radius of the egui::Frame from 4.0 to 20.0 (it is barely noticeable otherwise).
Zoom in and out.
Expected behavior When zooming, the corner radius should stay consistent in relation to the rest of the shape.
Screenshots
Additional context
Multiplying the radius by transform.scaling in the demo code seems to fix the issue, however I'd expect this to be handled automatically.
I suppose this was simply overlooked in #3906.
I'd fix it myself but I've barely started using egui, so I'll leave it to the professionals :)