From 17ff937210f8be3429108c27325754eeef25c585 Mon Sep 17 00:00:00 2001 From: Avafe <65048459+ImAvafe@users.noreply.github.com> Date: Tue, 10 Dec 2024 11:55:22 -0500 Subject: [PATCH] Reorganize props for Slider --- src/Components/Slider.luau | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Components/Slider.luau b/src/Components/Slider.luau index 1ba1aa2..6431040 100644 --- a/src/Components/Slider.luau +++ b/src/Components/Slider.luau @@ -52,12 +52,12 @@ return function(Scope: Fusion.Scope, Props: Props) local Value = Scope:EnsureValue(RoundByUnit(Util.Fallback(Props.Value, 1), Fusion.peek(Unit))) local Color = Util.Fallback(Props.Color, Theme.Colors.Primary.Main) local Disabled = Util.Fallback(Props.Disabled, false) + local IsHovering = Scope:EnsureValue(Util.Fallback(Props.IsHovering, false)) + local IsHolding = Scope:EnsureValue(Util.Fallback(Props.IsHolding, false)) local DragDetector = Scope:Value(nil) local AbsoluteSize = Scope:Value(Vector2.new()) local AbsolutePosition = Scope:Value(Vector2.new()) - local IsHovering = Scope:EnsureValue(Util.Fallback(Props.IsHovering, false)) - local IsHolding = Scope:EnsureValue(Util.Fallback(Props.IsHolding, false)) local EffectiveColor = Scope:Computed(function(Use) if Use(Disabled) then