Replies: 3 comments 1 reply
-
|
An event model for scroll-snap is a fairly popular request. See this issue from 2016 with 63 👍 . That issue contains a reasonable starting proposal with good questions to consider. I suggest considering the snapChanging/snapChanged proposal as part of a single proposal for adding snap events. I suggest making these non-blocking events. Any blocking snap event will likely get push back as they will interfere with off-thread scrolling. |
Beta Was this translation helpful? Give feedback.
-
|
discussion today around this api mentioned having the results be a multi-dimensional array so it's clear it's a collection of snapped items, and may be 1 but could be many more. i should make some visuals or demo's that help explain this! |
Beta Was this translation helpful? Give feedback.
-
|
I am not sure if it makes a difference, but I regularly run into the need for JavaScript events and being able to wire in additional control elements, as well as being able to react to interaction in scroll-snap'd contexts would be really, really important. For now, I have to engage with IntersectionObserver, which feels suboptimal. It works but it feels very inelegant. So, TLDR; expressing my support for the proposed additions. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Context: explainer
Questions?
Thoughts?
Naming fine?
Risks?
Beta Was this translation helpful? Give feedback.
All reactions