       return if x < @_minX or x > @_maxX
       
       scroller = @scrollControl.stop true
-      target = { left: x }
+      target =
+        left: x
+
       if animate
         scroller.animate target, @animationDuration, @easing
       else


      @scrollLeftControl = $(scrollControlTemplate)
      .addClass(@classes.scrollLeft)
      .bind "click", @scrollLeft
        
      @scrollRightControl = $(scrollControlTemplate)
      .addClass(@classes.scrollRight)
      .bind "click", @scrollRight
        
      @scrollControl = $("<div>&nbsp;</div>").addClass(@classes.control).css
        left: @container.innerWidth() / 2
        
      @scrollBackground = $("<div/>").addClass @classes.background
        
      @container.bind "mousedown click", @onControlEvent
      $(window).bind "mousemove mouseup", @onWindowEvent
        
      @container.append @scrollBackground, @scrollLeftControl, @scrollRightControl, @scrollControl
      
    updatePosition: (position, fireCallback=true) =>
      return if not position or position is @position or position < @start or position > @end

        @container.bind("touchstart touchmove touchend", @_onTouch) if @touch.enabled
      else
        # Add hover and touch functions to container when we don't have touch support
        @container.bind "mouseenter mouseleave", @_hover

      rondell = @

      # Delegate click and mouse events events to rondell items      
      @container
      .delegate ".#{@classes.item}", "click", (e) ->
        item = $(@).data "item"
        unless rondell._focusedItem.id is item.id
          e.preventDefault() 
          if not item.hidden and item.object.is ":visible"
            rondell.shiftTo item.currentSlot
      .delegate ".#{@classes.item}", "mouseenter mouseleave", (e) ->
          item = $(@).data "item"
          if e.type is "mouseenter" 
            rondell._onMouseEnterItem item.id
          else 
            rondell._onMouseLeaveItem item.id

    _onMobile: ->
      ###
      Mobile device detection. 
