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