src/components/ebay-carousel/index.js
function handleDotClick(originalEvent, target) {
    if (this.isMoving) {
        return;
    }
    const { state: { config, itemsPerSlide } } = this;
    const slide = parseInt(target.getAttribute('data-slide'), 10);
    config.preserveItems = true;
    this.setState('index', slide * itemsPerSlide);
    emitAndFire(this, 'carousel-slide', { slide: slide + 1, originalEvent });
}
function handleDotClick(originalEvent, target) {
    if (this.isMoving) {
        return;
    }
    const { state: { config, itemsPerSlide } } = this;
    const slide = parseInt(target.getAttribute('data-slide'), 10);
    config.preserveItems = true;
    this.setState('index', slide * itemsPerSlide);
    emitAndFire(this, 'carousel-slide', { slide: slide + 1, originalEvent });
}
function handleDotClick ( originalEvent , target ) { if ( this . isMoving ) { return ; } const { state : { config , itemsPerSlide } } = this ; const slide = parseInt ( target . getAttribute ( 'data-slide' ) , 10 ) ; config . preserveItems = true ; this . setState ( 'index' , slide * itemsPerSlide ) ; emitAndFire ( this , 'carousel-slide' , { slide : slide + 1 , originalEvent } ) ; }
Moves the carousel to the slide at `data-slide` for the clicked element if possible.

@param {MouseEvent} originalEvent
@param {HTMLElement} target
Moves the carousel to the slide at data - slide for the clicked element if possible .