       if @active
         return
       @active = true
+      #[@x,@y] = [5,5]
       @popup = $(
         '''<div class="resize_popup pull-right"
           style="border-radius: 10px; background-color: lightgrey; padding:3px 8px; font-size: 14px;

      cw = @plot_view.view_state.get('outer_width')
      @popup.text("x: 0 y:0")

      @request_render()
      @plot_view.$el.css("cursor", "crosshair")
      @plot_view.request_render()
      return null

    _deactivate: (e) ->

      ydiff = y - @y
      [@x, @y] = [x, y]


      data_x = sprintf("%.4f", @plot_view.xmapper.map_from_target(x))
      data_y = sprintf("%.4f", @plot_view.ymapper.map_from_target(y))
      @popup.text("x: #{data_x} y: #{data_y}")
      @request_render()
      @plot_view.request_render()
      @plot_view.unpause(true)
      return null

  class CrosshairTool extends Tool.Model
