Skip to content

Commit

Permalink
Update crates/egui/src/containers/scroll_area.rs
Browse files Browse the repository at this point in the history
Co-authored-by: Emil Ernerfeldt <[email protected]>
  • Loading branch information
juancampa and emilk authored Feb 11, 2024
1 parent b14e2c3 commit ff4b722
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/egui/src/containers/scroll_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -763,9 +763,9 @@ impl Prepared {
}

// Restore scroll target (if any) meant for ScrollAreas up the stack
for d in 0..2 {
if saved_scroll_target[d].is_some() {
ui.ctx().frame_state_mut(|state| {
ui.ctx().frame_state_mut(|state| {
for d in 0..2 {
if saved_scroll_target[d].is_some() {
state.scroll_target[d] = saved_scroll_target[d];
});
}
Expand Down

0 comments on commit ff4b722

Please sign in to comment.