src/components/ebay-carousel/index.js
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 });
}
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 });
}
function togglePlay ( originalEvent ) { const { state : { config , paused } } = this ; config . preserveItems = true ; this . setState ( 'paused' , ! paused ) ; if ( paused && ! this . isMoving ) { this . move ( RIGHT ) ; } emitAndFire ( this , ` ${ paused ? 'play' : 'pause' } ` , { originalEvent } ) ; }
Toggles the play state of an autoplay carousel.

@param {MouseEvent} originalEvent
Toggles the play state of an autoplay carousel .