code: function (evt) {
          if (this.started) {
              if(this.documentDrag === true && this.documentEvents) {
                  this.adjustXY(evt);
                  this.removeDocumentEvents();
              }
              var dragged = (this.start != this.last);
              this.started = false;
              this.dragging = false;
              OpenLayers.Element.removeClass(
                  this.map.viewPortDiv, "olDragDown"
              );
              this.up(evt);
              this.callback("up", [evt.xy]);
              if(dragged) {
                  this.callback("done", [evt.xy]);
              }
              document.onselectstart = this.oldOnselectstart;
          }
          return true;
      }
docs: Method: dragend
  This private method is factorized from mouseup and touchend methods
  
  Parameters:
  evt - {Event} The event
  
  Returns:
  {Boolean} Let the event propagate.