Vertical mode uses keyboard/drag/swipe controls from horizontal mode
https://codepen.io/Grawl/pen/qXbwQQ
vertical: trueIf I drag a slide using mouse or touchscreen to the top, it should move to top and show new slide on bottom of a slide.
If I drag a slide using mouse or touchscreen to the bottom, it should move to top and show new slide on top of a slide.
If I press Down key, it should move to top and show new slide on bottom of a slide.
If I press Up key, it should move to bottom and show new slide on top of a slide.
When I press Up or Bottom key, nothing happens.
When I press Left key, slide moves up.
When I press Right key, slide moves down.
Good catch. I'd say this is a priority. Wanna take a crack at a PR?
Made this demo to confirm
@leggomuhgreggo sorry I am not have enough time for it. life, you know.
Jafeel. Thanks for submitting the issue.
Oh you just need to add verticalSwiping: true
Okay, but what about to use up/down arrow keys instead of left/right on vertical mode?
I'm still seeing exact issue.
$(document).ready(function(){
$('.product-single__photos').slick({
slidesToShow: 1,
slidesToScroll: 1,
arrows: true,
fade: true,
swipe: false,
asNavFor: '.slider-nav'
});
$('.slider-nav').slick({
vertical:true,
verticalSwiping: true,
swipe:true,
slidesToShow: 3,
slidesToScroll: 1,
asNavFor: '.product-single__photos',
dots: false,
arrows: false,
focusOnSelect: false
});
});
@Abderezai oh god why your code indented so random
@leggomuhgreggo @kenwheeler so what about to use up/down arrow keys instead of left/right on vertical mode?
Yea guys... i need same here. Work around?
Ok! my work around here for a nested slick.
$( ".vertical-slick" ).keydown(function( event ) {
event.stopImmediatePropagation(); // Stops listen the keydown on a vertical element
});
$( ".horizontal-nested-slick" ).keydown(function( event ) {
if(event.which == 38 ) { // UP / CIMA
$("#vertical-slick-father").slick('slickPrev');
...
}
if(event.which == 40 ) { // DOWN / BAIXO
$("#vertical-slick-father").slick('slickNext');
...
}
});
Most helpful comment
Ok! my work around here for a nested slick.