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

    [x_, y_] = [@plot_model.rxpos(x), @plot_model.rypos(y)]
    return [x_, y_]

  _start_drag : (e, x, y) ->
    @draggin2 = true
    [@x, @y] = @mouse_coords(e, x, y)

    for ymap in ymappers
      @_drag_mapper(ymap, ydiff)

Bokeh.PanToolView = PanToolView_
