       window.addEventListener 'mouseup', @stop, true
 
       @stopEvent(e)
+
+    disable: ->
+      @disabled = true
+
+    enable: ->
+      @disabled = false
       
     pan: (e)=>
       @_pan_with(e.screenX, e.screenY)

      $(@eventDispatcher).unbind 'touchstart', @touch_start
    
    start: (e)=>
      # console.log "start panning"
      $('body').addClass('panning')
  

      @stopEvent(e)
      
    touch_start: (e)=>
      if @disabled
        return

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