   addEvent slider, 'webkitTransitionEnd', ->
     removeClass slider, choco_animated
     return
-
 
   addEvent overlay, 'transitionend', ->
     finish()

      else
        transparent 1
        isClosing = false

  addEvent slider, 'click', (event) ->
    stop event

    if isThumbing
      addClass slider, choco_animated
      max = @storage.length() - 1 if max is -1
      sliderOffset = getOffset slider
      sliderOffset = touchShift t, (sliderOffset / env.w)
      @select squeeze sliderOffset, 0, max
    if isClosing
      addClass overlay, choco_animated
      if opacity < 0.7
