You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Apologies if this is trivial/has been resolved already (saw #1605 & #3752), but at any rate I'm hoping this issue will be findable with an explicit answer 0:-)
On a slightly related note, has an JavaScript API been discussed to scroll (to) scroll snap points instead of having to calculate the coordinate(s) and using e.g. scrollTo?
The arrows on top of the items at http://snap.glitch.me/carousel-with-snap-stop.html are implemented like this as well.
I'd really like a function like
element.scrollSnapPoint(1); // scroll one item in direction
element.scrollSnapPoint(-1); // scroll one item against direction
…
esp. for snap targets with different sizes.
The text was updated successfully, but these errors were encountered:
Is this correct? Might it be useful to clarify this?
Yes, it's correct. As for clarification, note that the Chrome patch you link to links to the spec edit that's already meant to clarify this. ^_^
I've pinged the Chrome bug to see if we can get this landed.
On a slightly related note, has an JavaScript API been discussed to scroll (to) scroll snap points instead of having to calculate the coordinate(s) and using e.g. scrollTo?
Yes, we intend to add something for this at some point. Just haven't gotten around to it.
On a slightly related note, has an JavaScript API been discussed to scroll (to) scroll snap points instead of having to calculate the coordinate(s) and using e.g. scrollTo?
Yes, we intend to add something for this at some point. Just haven't gotten around to it.
Spec: https://www.w3.org/TR/css-scroll-snap-1/ respectively https://drafts.csswg.org/css-scroll-snap-1/
Given http://snap.glitch.me/carousel-with-snap-stop.html, Firefox 72.0.2 and Chrome 79.0.3945.130 currently have different behavior when using the scrollbar arrows:
Firefox:

(As video)
Chrome:

(As video)
I'm wondering what the intended behavior is?
The spec seems to classify those arrows under intended-direction
plus a section from Choosing Snap Positions
leads me to believe the behavior of Firefox is more aligned to the spec and moving to the next snap point is the intended behavior.
Is this correct? Might it be useful to clarify this?
Chrome has an issue to change the behavior: https://bugs.chromium.org/p/chromium/issues/detail?id=944184
Apologies if this is trivial/has been resolved already (saw #1605 & #3752), but at any rate I'm hoping this issue will be findable with an explicit answer 0:-)
On a slightly related note, has an JavaScript API been discussed to scroll (to) scroll snap points instead of having to calculate the coordinate(s) and using e.g.
scrollTo
?The arrows on top of the items at http://snap.glitch.me/carousel-with-snap-stop.html are implemented like this as well.
I'd really like a function like
esp. for snap targets with different sizes.
The text was updated successfully, but these errors were encountered: