mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
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