src/components/ebay-carousel/index.js
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 });
}
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 });
}
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 , ` ${ direction === 1 ? 'next' : 'previous' } ` , { originalEvent } ) ; }
Moves the carousel in the `data-direction` of the clicked element if possible.

@param {MouseEvent} originalEvent
@param {HTMLElement} target
Moves the carousel in the data - direction of the clicked element if possible .