1
0
Fork 0

Highlight the parameter while dragging

This commit is contained in:
Robbert van der Helm 2022-03-14 15:01:24 +01:00
parent 304b9bdfeb
commit f1a855f2e3

View file

@ -243,7 +243,7 @@ impl<'a, P: Param, Renderer: text::Renderer> Widget<ParamMessage, Renderer>
let is_mouse_over = bounds.contains(cursor_position);
// The bar itself
let background_color = if is_mouse_over {
let background_color = if is_mouse_over || self.state.drag_active {
Color::new(0.5, 0.5, 0.5, 0.1)
} else {
Color::TRANSPARENT