     constructor: (zui)->
       @vp = zui
       @eventDispatcher = zui.viewport #window
+      @disabled = false
   
     attach: ()=>
       # console.log "Attaching PAN"

      @stopEvent(e)
      
    touch_start: (e)=>
      # console.log "start panning (touch)"
      @_start_with(e.originalEvent.touches[0].clientX, e.originalEvent.touches[0].clientY)
      @eventDispatcher.addEventListener 'touchmove', @touch_move, true

      window.addEventListener 'mouseup', @stop, true

      @stopEvent(e)

    disable: ->
      @disabled = true

    enable: ->
      @disabled = false
      
    pan: (e)=>
      @_pan_with(e.screenX, e.screenY)
