Snap stop need to be the children, not parent

This commit is contained in:
Lim Chee Aun 2022-12-23 09:17:41 +08:00
parent 374b8d97d5
commit 206d40c0a4

View file

@ -439,13 +439,13 @@ a.mention span {
/* scroll-behavior: smooth; */
scrollbar-width: none;
overscroll-behavior: contain;
scroll-snap-stop: always;
}
.carousel::-webkit-scrollbar {
display: none;
}
.carousel > * {
scroll-snap-align: center;
scroll-snap-stop: always;
flex-shrink: 0;
display: flex;
justify-content: center;