code: function handleMove(originalEvent, target) {
      if (this.isMoving) {
          return;
      }
      const { state } = this;
      const direction = parseInt(target.getAttribute('data-direction'), 10);
      const nextIndex = this.move(direction);
      const slide = getSlide(state, nextIndex);
      emitAndFire(this, 'carousel-slide', { slide: slide + 1, originalEvent });
      emitAndFire(this, `carousel-${direction === 1 ? 'next' : 'previous'}`, { originalEvent });
  }
docs: Moves the carousel in the `data-direction` of the clicked element if possible.
  
  @param {MouseEvent} originalEvent
  @param {HTMLElement} target