Skip to content

Commit

Permalink
Update scroll_area.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
rustbasic authored Oct 20, 2024
1 parent eae65bc commit b72d3b1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions crates/egui/src/containers/scroll_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -883,6 +883,8 @@ impl Prepared {

if !animated {
state.offset[d] = target_offset;
} else if let Some(_scroll_to_target) = &mut state.offset_target[d] {
// Probably in the middle of animation process.
} else {
// The further we scroll, the more time we take.
let now = ui.input(|i| i.time);
Expand Down

0 comments on commit b72d3b1

Please sign in to comment.