Fix scroller in Scrollable always being drawn
... instead of only drawing it when the mouse is over the `Scrollable`.
This commit is contained in:
parent
91d5516474
commit
a2864df098
1 changed files with 2 additions and 3 deletions
|
|
@ -714,9 +714,8 @@ pub fn draw<Renderer>(
|
|||
);
|
||||
}
|
||||
|
||||
if is_mouse_over
|
||||
|| state.is_scroller_grabbed()
|
||||
|| is_scrollbar_visible
|
||||
if (is_mouse_over || state.is_scroller_grabbed())
|
||||
&& is_scrollbar_visible
|
||||
{
|
||||
renderer.fill_quad(
|
||||
renderer::Quad {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue