Browse Source

fix(🐛): Carousel throws error `Unable to preventDefault inside passive event listener` (#27957)

close #27927

https://github.com/akiran/react-slick/issues/1650
pull/27960/head
偏右 4 years ago
committed by GitHub
parent
commit
7041989b7b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      components/carousel/style/index.less

5
components/carousel/style/index.less

@ -15,6 +15,7 @@
touch-action: pan-y;
-webkit-tap-highlight-color: transparent;
}
.slick-list {
position: relative;
display: block;
@ -56,9 +57,11 @@
}
}
}
.slick-slider .slick-track,
.slick-slider .slick-list {
transform: translate3d(0, 0, 0);
touch-action: pan-y;
}
.slick-track {
@ -81,6 +84,7 @@
visibility: hidden;
}
}
.slick-slide {
display: none;
float: left;
@ -90,6 +94,7 @@
img {
display: block;
}
&.slick-loading img {
display: none;
}

Loading…
Cancel
Save