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
Svelte has this wonderful feature that allows to create binding for {client,offset,content}{Width,Height} and other related properties. However, it does not support scroll{Width,Height}. Binding to those values would be useful for creating carousels, sliders, and other scroll-based components.
Hey is anything stopping this being a thing? I've encountered multiple times where this would be useful and less boilerplate than an event listener. I can try to help get this implemenented if its okay with everyone.
Describe the problem
Svelte has this wonderful feature that allows to create binding for
{client,offset,content}{Width,Height}
and other related properties. However, it does not supportscroll{Width,Height}
. Binding to those values would be useful for creating carousels, sliders, and other scroll-based components.svelte/packages/svelte/src/compiler/phases/bindings.js
Lines 149 to 181 in 3ee8e0b
Describe the proposed solution
Add bindings for scrollWidth and scrollHeight for all elements.
Importance
nice to have
The text was updated successfully, but these errors were encountered: