Fixed an error where y-scrolling has a higher specificity in css and thus a rule while dragging wasn't working.
This commit is contained in:
1 parent
0ab54c38de
commit
33fa17fc7a
1 file changed
+6
-2
+6
-2
@@ -11,8 +11,8 @@
|
||||
scroll-snap-type: x mandatory;
|
||||
|
||||
&.is-dragging {
|
||||
scroll-snap-type: none;
|
||||
scroll-behavior: unset;
|
||||
scroll-snap-type: none !important;
|
||||
scroll-behavior: unset !important;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -30,6 +30,10 @@
|
||||
background-color: silver;
|
||||
}
|
||||
|
||||
.prev, .next {
|
||||
touch-action: manipulation;
|
||||
}
|
||||
|
||||
/* Options */
|
||||
|
||||
&[data-scroll-direction="y"] .scroll-container {
|
||||
|
||||
Reference in new issue
Block a user