 
   bind_events : (plotview) ->
     @plotview = plotview
-    window.ptv = @
     @plotview.moveCallbacks.push((e, x, y) =>
-      the = @
-      #debugger;
       if not @dragging2
-        #console.log('returning because not dragging')
         return
       if not @started_dragging
         @_start_drag(e, x, y)

        @_drag(e.foo, e.foo, e, x, y)
        e.preventDefault()
        e.stopPropagation())

  
    $(document).bind('keydown', (e) =>
      console.log(' keydown event ')
      if e.shiftKey
        @_start_drag2())
          

    $(document).bind('keyup', (e) =>
      console.log('keyup event')
      if not e.shiftKey
        @_stop_drag2())


  initialize : (options) ->
    @dragging2 = false
    @started_dragging = false
    super(options)
    @dragging = false
    @started_dragging = false
