tinycarousel
tinycarousel copied to clipboard
Issue #20: mirrored items visible
This fixes an issue where mirrored items would be visible in the carousel when all of the items could fit into the visible space of the carousel. The behavior has been changed as follows:
- When the update() method is invoked, the mirrored items will only be appended if there are slides that will not fit into the visible area of the carousel.
- If infinite scrolling and buttons are enabled, the buttons will be toggled with the "disable" class based on if there are items that do not fit into the visible area of the carousel.
- If the "disable" class is applied to the buttons, it will not advance the slides.
- If you resize the window, the slide you are currently on will be "moved to".
Coverage decreased (-1.2%) to 85.556% when pulling bb5076c3caea155651514ef315d5d3176aad8762 on sprak3000:issue-20-mirrored-items-visible into beb5a203c4a9b6253d557fa171f718a068fba63f on wieringen:master.