     return [xrange, yrange]
 
   _selecting : (e, x_, y_) ->
-    [x, y] = @mouse_coords(e, e.originalEvent.layerX, e.originalEvent.layerY)
+    [x, y] = @mouse_coords(e, e.bokehX, e.bokehY)
     @mset({'current_x' : x, 'current_y' : y})
     return null
 

        return
      if not @tool_active
        return
      if not @basepoint_set
        @dragging = true
        @basepoint_set = true

    }, {'local' : true})

  _drag : (e) ->
    [x, y] = @mouse_coords(e, e.bokehX, e.bokehY)
    xdiff = x - @x
    ydiff = y - @y
    [@x, @y] = [x, y]
