       SetBasepoint: "_start_selecting",
       UpdatingMouseMove: "_selecting",
       deactivated: "_stop_selecting",
-      DragEnd : "_select_data"
+      #DragEnd : "_select_data"
+      DragEnd : "_dragend",
       }
 
     pause:()->

  class BoxSelectToolView extends Tool.View
    initialize: (options) ->
      super(options)
      #@select_callback = _.debounce((() => @_select_data()), 50)
      #@listenTo(@model, 'change', @select_callback)


      @mset({'current_x': x, 'current_y': y})
      [@xrange, @yrange] = @_get_selection_range(x, y)
      @trigger('boxselect', @xrange, @yrange)
      if @every_select
        @_select_data()
      else
        @plot_view.render_overlays(true)
      return null

    _dragend : () ->
      console.log("dragend")
      @_select_data()
    _select_data: () ->
      if not @basepoint_set
        return
