Replies: 1 comment
-
For your workaround .snap-x-not-y {
scroll-snap-type: x mandatory;
scroll-snap-type: y proximity;
} it is equivalent to .snap-x-not-y {
scroll-snap-type: y proximity;
} and equivalent to right? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
My UseCase: I have a very long list which requires scrolling x and y (Demo URL).
However, I only want scroll snapping mandatory on x. On y I want no snapping or proximity snapping.
Right now, the way
snap-mandatory
andsnap-proximity
(Docs) are set up, one can only specify those for both.My workaround: Some custom css FixMyBerlin/radwege-check.de@aa24430
Suggested solution: Add
snap-mandatory-x
,snap-mandatory-y
(same for proximity) which should then take precedence over the generalsnap-mandatory
.Beta Was this translation helpful? Give feedback.
All reactions