diff --git a/src/Controls/Slider.ts b/src/Controls/Slider.ts index 38f9ab35..d7e6d5c0 100644 --- a/src/Controls/Slider.ts +++ b/src/Controls/Slider.ts @@ -145,7 +145,7 @@ module Fayde.Controls { if (max === min) return; - var percent = val / (max - min); + var percent = (val - min) / (max - min); if (largeDecrease != null && thumb != null) { if (isHorizontal) largeDecrease.Width = Math.max(0, percent * (this.ActualWidth - thumb.ActualWidth)); @@ -253,4 +253,4 @@ module Fayde.Controls { { Name: "VerticalThumb", Type: Primitives.Thumb }, { Name: "VerticalTrackLargeChangeIncreaseRepeatButton", Type: Primitives.RepeatButton }, { Name: "VerticalTrackLargeChangeDecreaseRepeatButton", Type: Primitives.RepeatButton }); -} \ No newline at end of file +}