-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Description
Moved the issue to the community fork
Go to materializecss#180
Everything is said in the title : when we declare a carousel with the nowrap option, the mouse control displays an empty slide before the first and after the last element
Expected Behavior
We can navigate (in PC) over the carousel by clicking in the left or in the right.
When we click in the left of the first item of the carousel, there should be any movements. It is the same for the right of the last item
Current Behavior
When we click in the left of the first item of the carousel, there is a movement in a empty item. It is the same for the right of the last item.
Possible Solution
there is a similar issue fixed for the control functions, but not the click): #5977
Steps to Reproduce (for bugs)
<!--HTML struct-->
<div class='carousel'>
<a class='carousel-item' href='#vol1'> <img src='/res/img/covers/1.jpg' alt='art'/></a
<a class='carousel-item' href='#vol2'> <img src='/res/img/covers/2.jpg' alt='art'/>
<!-- [...] -->
<a class='carousel-item' href='#vol13'> <img src='/res/img/covers/13.jpg' alt='art'/></a>
</div>carousel init options :
{
noWrap: true,
indicators: true,
shift: 20,
padding: 00,
dist: -20,
onCycleTo: function(e){console.log(e);}
}Context
i just tried the code and found that strange bug...
Your Environment
- Version used: 1.0 release
- Browser Name and version: Chrome 77.0, Firefox 69.0
- Operating System and version (desktop or mobile): Windows 7
- Link to your project : The content might change over the time : https://kagescan.legtux.org/scan-dev/kagerou-days/
Metadata
Metadata
Assignees
Labels
No labels