     return newV
 
   sliderLocation: ->
-    (@state.value - @props.min) / (@props.max - @props.min)
+    (@props.value - @props.min) / (@props.max - @props.min)
 
   sliderPercent: ->
     (@sliderLocation() * 100)

      padding: "0px"
      border: "0px"
      width: "#{@props.width}px"
      "min-height":"#{@props.height}px"
    circleRadius = 2
    (div {className: "value-slider", style: style},
      (svg {className: "svg-background", width: "#{@props.width}px", height:"#{@props.height}px", viewBox: "0 0 #{@props.width} #{@props.height}"},


    if @state.dragging
      style.display = "block"
    (div {className: "number", style: style}, Math.round(@props.value))

  renderHandle: ->
    width = height = "#{@props.handleSize}px"
