egui/crates/egui
YgorSouza a7ae1012e5
Fix debug-panic in ScrollArea if contents fit without scrolling (#7440)
If the ScrollArea's contents are smaller than the inner rect, but the
scrollbar is set to always visible, clicking on it led to a remap from
an empty range to calculate the new offset, which triggered a debug
assertion in the remap function, because the result is indeterminate.

Since in this case there is no need to scroll, we just skip the remap
and set the offset to 0 directly.

* Closes <https://github.com/emilk/egui/issues/7362>
* [x] I have followed the instructions in the PR template
2025-08-14 10:41:51 +02:00
..
assets Fix broken images on egui.rs (move from git lfs to normal git) (#5480) 2024-12-16 14:16:54 +01:00
examples Rename `master` branch to `main` (#7034) 2025-05-08 09:15:42 +02:00
src Fix debug-panic in ScrollArea if contents fit without scrolling (#7440) 2025-08-14 10:41:51 +02:00
Cargo.toml Add `AtomLayout`, abstracing layouting within widgets (#5830) 2025-06-13 09:39:52 +02:00
README.md Move all crates into a `crates` directory (#1940) 2022-08-20 10:41:49 +02:00

README.md

GUI implementation

This is the core library crate egui. It is fully platform independent without any backend. You give the egui library input each frame (mouse pos etc), and it outputs a triangle mesh for you to paint.