code: function togglePlay(originalEvent) {
      const { state: { config, paused } } = this;
      config.preserveItems = true;
      this.setState('paused', !paused);
      if (paused && !this.isMoving) {
          this.move(RIGHT);
      }
      emitAndFire(this, `carousel-${paused ? 'play' : 'pause'}`, { originalEvent });
  }
docs: Toggles the play state of an autoplay carousel.
  
  @param {MouseEvent} originalEvent