jsor / jcarousel

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

scrolling problem when using visible option #127

Closed geschke closed 13 years ago

geschke commented 13 years ago

Hello!

In your simple example you're not using the "visible" option. I've set "visible" to 3 and expected the same behaviour like before. But when the carousel scrolls to the left side, the right margin of scrolling area does some "flickering". There are a few pixels between right margin and the image, so it seems that clipping area and right margin of the right image doesn't match. The pixel size of "jcarousel-item" definition comes from some calculation. If the visible option is missing (and in this case set to null), and the CSS setting is not explicitly modified, everything seems correct.

Kind regards, Ralf

jsor commented 13 years ago

In most cases you don't need the visible option. This is for cases where the carousel has a flexible width and you want always a certain number of items visible. See: http://sorgalla.com/projects/jcarousel/examples/special_flexible.html

jCarousel simply sets the width for the <li> elements (width_of_carousel / visible).

AnghelGabriel commented 11 years ago

I kinda have the same issue. I use the visible option set to 4. If the <li> has right margin then the last visible item is visible with margin to. Is there a solution where, when using visible option, the margin of last item is being clipped ?