ganlanyuan / tiny-slider

Vanilla javascript slider for all purposes.
MIT License
5.21k stars 779 forks source link

Arrow keys (on focused controls) not working #326

Open qntndev opened 5 years ago

qntndev commented 5 years ago

Issue description: [Since last commit], arrow keys are not working when my controls are focused. This issue only appends when using custom controls container. Come to last stable version fix the issue.

Demo link/slider setting:

var slider = tns({
    container: '.js-carousel-home',
    autoplayButtonOutput: false,
    mode: 'gallery',
    nav: false,
    speed: 1000,
    autoplay: true,
    mouseDrag: true,
    touch: true,
    controlsContainer: '.js-carousel-nav'
});

Tiny-slider version: Last commit Browser name && version: Chrome up to date OS name && version:

ganlanyuan commented 5 years ago

I couldn't reproduce this issue, could you make a demo?