docs: function handleMouseup(event) {
          scope.broadcast('dragend');
          $window.off('mousemove', handleMousemove);
          $window.off('mouseup', handleMouseup);
          event.preventDefault();
      }