woocommerce/FlexSlider

slides to far

Closed this issue · 0 comments

If u using the flex-direction nav-arrows (e.g. 1 click right) than wait like 5s and try using the keyboard in the same direction, the flexslider jumps 2 slides to far.

e.g.:
Slide 0
use click at navitem
slided to 1
wait 5s
use keyboard right arrow
slided to 3

tried to do an workaround but get the same:

        $(document).on('keyup', function(e){
            let cur = $('.flexslider.start').data('flexslider').currentSlide;
            let last = $('.flexslider.start').data('flexslider').last;
            if(e.keyCode == 39 && cur != last) {
                $('.flexslider.start').flexslider(cur + 1);
            }
            if(e.keyCode == 37 && cur != 0) {
                $('.flexslider.start').flexslider(cur - 1);
            }
        });   

seems like the current slide is setted up somehow in the 5s waiting.