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;
|
scroll-snap-type: x mandatory;
|
||||||
|
|
||||||
&.is-dragging {
|
&.is-dragging {
|
||||||
scroll-snap-type: none;
|
scroll-snap-type: none !important;
|
||||||
scroll-behavior: unset;
|
scroll-behavior: unset !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -30,6 +30,10 @@
|
|||||||
background-color: silver;
|
background-color: silver;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.prev, .next {
|
||||||
|
touch-action: manipulation;
|
||||||
|
}
|
||||||
|
|
||||||
/* Options */
|
/* Options */
|
||||||
|
|
||||||
&[data-scroll-direction="y"] .scroll-container {
|
&[data-scroll-direction="y"] .scroll-container {
|
||||||
|
|||||||
Reference in new issue
Block a user