diff options
Diffstat (limited to 'native/src/widget/slider.rs')
-rw-r--r-- | native/src/widget/slider.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/native/src/widget/slider.rs b/native/src/widget/slider.rs index a8915da1..f07ea7cd 100644 --- a/native/src/widget/slider.rs +++ b/native/src/widget/slider.rs @@ -95,8 +95,8 @@ impl State { /// Creates a new [`State`]. /// /// [`State`]: struct.State.html - pub const fn new() -> State { - State { is_dragging: false } + pub fn new() -> State { + State::default() } } |