diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index 92ed72e9..fd9160a4 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -363,11 +363,11 @@ pub fn draw( let is_mouse_over = bounds.contains(cursor_position); let style = if state.is_dragging { - style_sheet.dragging(&style) + style_sheet.dragging(style) } else if is_mouse_over { - style_sheet.hovered(&style) + style_sheet.hovered(style) } else { - style_sheet.active(&style) + style_sheet.active(style) }; let rail_y = bounds.y + (bounds.height / 2.0).round();