From f1a855f2e30f997287ae781872fda2a20747ab30 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 14 Mar 2022 15:01:24 +0100 Subject: [PATCH] Highlight the parameter while dragging --- nih_plug_iced/src/widgets/param_slider.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nih_plug_iced/src/widgets/param_slider.rs b/nih_plug_iced/src/widgets/param_slider.rs index 1f114bc2..d12bd54b 100644 --- a/nih_plug_iced/src/widgets/param_slider.rs +++ b/nih_plug_iced/src/widgets/param_slider.rs @@ -243,7 +243,7 @@ impl<'a, P: Param, Renderer: text::Renderer> Widget 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