code: function(xy) {
          if(this.panned) {
              var res = null;
              if (this.kinetic) {
                  res = this.kinetic.end(xy);
              }
              this.map.pan(
                  this.handler.last.x - xy.x,
                  this.handler.last.y - xy.y,
                  {dragging: !!res, animate: false}
              );
              if (res) {
                  var self = this;
                  this.kinetic.move(res, function(x, y, end) {
                      self.map.pan(x, y, {dragging: !end, animate: false});
                  });
              }
              this.panned = false;
          }
      }
docs: Method: panMapDone
  Finish the panning operation.  Only call setCenter (through <panMap>)
  if the map has actually been moved.
  
  Parameters:
  xy - {<OpenLayers.Pixel>} Pixel of the mouse position