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 Apr 11, 2024
1 parent 9d01bef commit aff6dd9
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 @@ -880,6 +880,8 @@ impl Prepared {
ui.ctx().input_mut(|input| {
input.smooth_scroll_delta[0] += input.raw_scroll_delta[0];
input.smooth_scroll_delta[1] += input.raw_scroll_delta[1];
input.raw_scroll_delta[0] = 0.0;
input.raw_scroll_delta[1] = 0.0;
});
}

Expand Down

0 comments on commit aff6dd9

Please sign in to comment.