     }, {'local' : true})
 
   _drag : (e) ->
-    [x, y] = @mouse_coords(e, e.originalEvent.layerX, e.originalEvent.layerY)
+    [x, y] = @mouse_coords(e, e.bokehX, e.bokehY)
     xdiff = x - @x
     ydiff = y - @y
     [@x, @y] = [x, y]

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

  bind_events : (plotview) ->
    @plotview = plotview
    $(@plotview.main_can_wrapper).bind("mousewheel", (e, delta, dX, dY) =>
        @_zoom(e, delta, e.bokehX, e.bokehY)
        e.preventDefault()
        e.stopPropagation()
    )
