1
0
mirror of https://github.com/emilk/egui.git synced 2026-06-27 23:13:13 -04:00
Files
egui/crates/egui
lucasmerlin fca54dec2c Only paint scroll fade on enabled axes
`paint_fade_areas` previously checked overflow on both axes regardless
of which directions were scroll-enabled. A horizontal-only ScrollArea
with non-zero overflow.y (which can happen when the inner ui's content
height differs from `inner_rect.size().y` for any reason) would draw
permanent top/bottom fades — visible as a stripe through the content
that never goes away because there's no way to scroll it off.

Gate the top/bottom fades behind `direction_enabled.y` and the
left/right fades behind `direction_enabled.x`. The ScrollArea already
owns this state; pass it through `show_viewport_dyn`.
2026-05-10 01:50:37 +02:00
..

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.