code: function(evt) {
                      // console.log("110"+" onpress: "+Math.random()+" "+ evt.type);
                      if(! _dragEnabled)return;
  
                      if (isClickableElement(evt)) {
                          return;
                      }
  
                      if (evt.type == "mousedown" && evt.button != 0) {
                          // Do not start dragging on right-click
                          return;
                      }
  
                      var useTouch = evt.type === 'touchstart' ? true : false;
  
  
                      if(useTouch){
                          cancelPress();
                          _pressTimer = setTimeout(function(){
                              cancelPress();
                              onlongpress(evt);
                              onmove(evt);
                          },ngDraggable.touchTimeout);
                          $document.on(_moveEvents, cancelPress);
                          $document.on(_releaseEvents, cancelPress);
                      }else{
                          onlongpress(evt);
                      }
  
                  }
docs: /*
  When the element is clicked start the drag behaviour
  On touch devices as a small delay so as not to prevent native window scrolling