Skip to content

Commit

Permalink
fix(šŸ›): Carousel throws error `Unable to preventDefault inside passivā€¦
Browse files Browse the repository at this point in the history
ā€¦e event listener`

close #27927

akiran/react-slick#1650
  • Loading branch information
afc163 committed Nov 23, 2020
1 parent e0c19e4 commit 3b1d24a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions components/carousel/style/index.less
Expand Up @@ -15,6 +15,7 @@
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
}

.slick-list {
position: relative;
display: block;
Expand Down Expand Up @@ -56,9 +57,11 @@
}
}
}

.slick-slider .slick-track,
.slick-slider .slick-list {
transform: translate3d(0, 0, 0);
touch-action: pan-y;
}

.slick-track {
Expand All @@ -81,6 +84,7 @@
visibility: hidden;
}
}

.slick-slide {
display: none;
float: left;
Expand All @@ -90,6 +94,7 @@
img {
display: block;
}

&.slick-loading img {
display: none;
}
Expand Down

0 comments on commit 3b1d24a

Please sign in to comment.