jsor / jcarousel

Riding carousels with jQuery.
https://sorgalla.com/jcarousel/
MIT License
2k stars 737 forks source link

Scrolling does not work with a small screen #851

Open igor3310 opened 3 years ago

igor3310 commented 3 years ago

Scrolling does not work with a small screen - for example, with a max-width 550px and below work on small screen the code https://github.com/igor3310/jcarousel2

ivydeveloper commented 1 month ago

I found that on screens narrower than around 525px, the scrolling/navigation was not working. The problem was that "jCarousel tries to auto-detect the orientation by simply checking if the list elements’s height is greater than the list element’s width." On small screens, it wanted to move horizontally, not vertically. When I added the option vertical: false, as mentioned on https://sorgalla.com/jcarousel/docs/reference/usage.html, it began to work on small sizes too.