Better control of scroll snap for calendar months on mobile
It is not a problem in desktop, because there is no scroll bar, but in mobile you can scroll with touch, and i need the months to snap to the start for the next and previous buttons to work.
This commit is contained in:
parent
244cbeddac
commit
1491e975c2
|
@ -1125,12 +1125,14 @@ body > footer > div, .campsite_type_features, .campsite_type_detail {
|
|||
scrollbar-width: none;
|
||||
-webkit-overflow-scrolling: touch;
|
||||
-ms-overflow-style: -ms-autohiding-scrollbar;
|
||||
scroll-snap-type: x proximity;
|
||||
}
|
||||
|
||||
.campsite_type_calendar table {
|
||||
border-collapse: collapse;
|
||||
flex: 0 0 27rem;
|
||||
height: 100%;
|
||||
scroll-snap-align: center start;
|
||||
}
|
||||
|
||||
.campsite_type_calendar td {
|
||||
|
|
Loading…
Reference in New Issue