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; */ /* scroll-behavior: smooth; */
scrollbar-width: none; scrollbar-width: none;
overscroll-behavior: contain; overscroll-behavior: contain;
scroll-snap-stop: always;
} }
.carousel::-webkit-scrollbar { .carousel::-webkit-scrollbar {
display: none; display: none;
} }
.carousel > * { .carousel > * {
scroll-snap-align: center; scroll-snap-align: center;
scroll-snap-stop: always;
flex-shrink: 0; flex-shrink: 0;
display: flex; display: flex;
justify-content: center; justify-content: center;