question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

vertical mode: next/prev controls is not changed to up/down

See original GitHub issue

Vertical mode uses keyboard/drag/swipe controls from horizontal mode

https://codepen.io/Grawl/pen/qXbwQQ

Steps to reproduce the problem

  1. Set vertical: true
  2. Try to navigate through slides using swipes/dragging/keyboard

What is the expected behaviour?

If 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.

What is observed behaviour?

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.

More Details

  • Which browsers/versions does it happen on? Google Chrome 60
  • Which jQuery/Slick version are you using? jQuery 3.2.1 & Slick 1.6.0
  • Did this work before? I Don’t know

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:10

github_iconTop GitHub Comments

2reactions
elynegraocommented, Aug 21, 2017

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');
                    ...
  	}
});
1reaction
Abderezaicommented, Aug 16, 2017

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
});
});
Read more comments on GitHub >

github_iconTop Results From Across the Web

bxSlider - Wrong pause between slides when using pager
Switch back to Slide #1 by clicking on the pager; Pause should then last 5 seconds (like during the "auto" mode), but instead...
Read more >
GoPro Hero 8: How to Rotate Screen Orientation ... - YouTube
With ALL you will be able to record landscape (horizontal) or portrait mode ( vertical ). With Landscape you can only record horizontal....
Read more >
Windows Terminal Actions | Microsoft Learn
Learn how to create custom actions for Windows Terminal.
Read more >
VEGAS PRO - Keyboard shortcuts
Pitch shifted audio events will display the amount of pitch shift in ... When the command is not selected, a static frame is...
Read more >
TMS Smooth Controls - DEVELOPERS GUIDE - Tmssoftware
Picture: you can always set a picture that is not bound to the rectangle of ... TAdvFormStyler style changes and thus the style...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found