Fix misnamed variable (content_is_too_small -> content_is_too_large)
See https://github.com/emilk/egui/issues/1376
This commit is contained in:
parent
8997519eb2
commit
c62f3409bd
1 changed files with 4 additions and 4 deletions
|
@ -601,12 +601,12 @@ impl Prepared {
|
|||
|
||||
let outer_rect = Rect::from_min_size(inner_rect.min, inner_rect.size() + current_bar_use);
|
||||
|
||||
let content_is_too_small = [
|
||||
let content_is_too_large = [
|
||||
content_size.x > inner_rect.width(),
|
||||
content_size.y > inner_rect.height(),
|
||||
];
|
||||
|
||||
if content_is_too_small[0] || content_is_too_small[1] {
|
||||
if content_is_too_large[0] || content_is_too_large[1] {
|
||||
// Drag contents to scroll (for touch screens mostly):
|
||||
let sense = if self.scrolling_enabled {
|
||||
Sense::drag()
|
||||
|
@ -664,8 +664,8 @@ impl Prepared {
|
|||
}
|
||||
|
||||
let show_scroll_this_frame = [
|
||||
content_is_too_small[0] || always_show_scroll,
|
||||
content_is_too_small[1] || always_show_scroll,
|
||||
content_is_too_large[0] || always_show_scroll,
|
||||
content_is_too_large[1] || always_show_scroll,
|
||||
];
|
||||
|
||||
let max_scroll_bar_width = max_scroll_bar_width_with_margin(ui);
|
||||
|
|
Loading…
Reference in a new issue