vasyabigi / angular-slick

Angular directive for slick-carousel
http://vasyabigi.github.io/angular-slick/
MIT License
500 stars 237 forks source link

Dragging makes my list disappear #171

Open thierryskoda opened 7 years ago

thierryskoda commented 7 years ago

Hi,

I'm having an issue where when I start dragging my list, it works 2-3 seconds than it disappears. I inspected the code and saw that it's because the slick library is applying a transform: translate3d(-14375px, 0px, 0px); How did I arrive to -14375px.

Any help would be very appreciated! Thank you!

antonyjseven commented 7 years ago

Have the same issue. Mayby any workarounds?

dajasra commented 7 years ago

+1

thierryskoda commented 7 years ago

Hey guys! To solve this issues, I had to play with the css of the parent containers of my angular-slick component. For my situation. I had custom width slick item (ex: 80px width each) and because of that, I had to set all parents to width: auto;. I had width :100% at first and this is why I had the problem.

Hope this help