code: function (e, target) {
              var pos = {},
                pageX = e.pageX,
                pageY = e.pageY;
  
              if (e.originalEvent && e.originalEvent.touches && (e.originalEvent.touches.length > 0)) {
                pageX = e.originalEvent.touches[0].pageX;
                pageY = e.originalEvent.touches[0].pageY;
              }
              pos.offsetX = pageX - this.offset(target).left;
              pos.offsetY = pageY - this.offset(target).top;
              pos.startX = pos.lastX = pageX;
              pos.startY = pos.lastY = pageY;
              pos.nowX = pos.nowY = pos.distX = pos.distY = pos.dirAx = 0;
              pos.dirX = pos.dirY = pos.lastDirX = pos.lastDirY = pos.distAxX = pos.distAxY = 0;
              return pos;
            }
docs: @ngdoc method
  @name ui.tree#positionStarted
  @methodOf ui.tree.service:UiTreeHelper
  
  @description
  Get the start position of the target element according to the provided event properties.
  
  @param {Object} e Event
  @param {Object} target Target element
  @returns {Object} Object with properties offsetX, offsetY, startX, startY, nowX and dirX.