       log.info "new value #{v}"
 
   getInitialState: ->
-    value = _.clone @props.value
-    value = if value > @props.max then @props.max else value
-    value = if value < @props.min then @props.min else value
-    value: value
     dragging: false
 
   updateValue: (xValue,dragging) ->
     value = @valueFromSliderUI(xValue)
-    @setState
-      'value': value
-      'dragging': dragging
     @props.onValueChange value
 
   componentDidMount: ->



module.exports = ValueSlider
myView = React.createFactory ValueSlider
window.testComponent = (domID) -> React.render myView({}), domID

      axis: "x"
      containment: "parent"
      start: (event, ui) =>
        @setState 'dragging': true
        @updateValue ui.position.left, true

      drag: (event, ui) =>
        @updateValue ui.position.left, true

      stop: (event, ui) =>
        @setState 'dragging': false
        @updateValue ui.position.left, false

  valueFromSliderUI: (displayX) ->
