   initialize : (options) ->
     super(options)
     @draggin2 = false
-    @started_dragging = false
+    @basepoint_set = false
     @button_activated = false
 
   bind_events : (plotview) ->

        @button_activated = true)

  _start_drag2 : ->
    if not @draggin2 
      @started_dragging = false
      @draggin2 = true
      if not @button_activated
        @pan_button.addClass('active')
   
  _stop_drag2 : ->
    if @draggin2
      @started_dragging = false
      @draggin2 = false
      if not @button_activated
        @pan_button.removeClass('active')

  this.Bokeh = Bokeh
safebind = Continuum.safebind


class PanToolView_ extends Bokeh.PlotWidget
  # draggin2 is used because having a variable named @dragging causes some sort of naming conflict.
  # I need to look through this and figure out what is going on
