Skip to content

Commit

Permalink
Fix id-clash with bidir scroll areas
Browse files Browse the repository at this point in the history
  • Loading branch information
emilk committed Nov 9, 2023
1 parent 42aa76b commit a89883c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/egui/src/containers/scroll_area.rs
Original file line number Diff line number Diff line change
Expand Up @@ -853,7 +853,7 @@ impl Prepared {
|| state.scroll_bar_interaction[d];
let is_hovering_bar_area_t = ui
.ctx()
.animate_bool(id.with("bar_hover"), is_hovering_bar_area);
.animate_bool(id.with((d, "bar_hover")), is_hovering_bar_area);
let width = show_factor
* lerp(
scroll_style.floating_width..=scroll_style.bar_width,
Expand Down Expand Up @@ -1013,7 +1013,7 @@ impl Prepared {
scroll_style.interact_handle_opacity
} else {
let is_hovering_outer_rect_t = ui.ctx().animate_bool(
id.with("is_hovering_outer_rect"),
id.with((d, "is_hovering_outer_rect")),
is_hovering_outer_rect,
);
lerp(
Expand Down

0 comments on commit a89883c

Please sign in to comment.