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.
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.https://github.com/sveltejs/svelte/blob/3ee8e0b14c9c6549e293eea498ec0659969df513/packages/svelte/src/compiler/phases/bindings.js#L149-L181
Describe the proposed solution
Add bindings for scrollWidth and scrollHeight for all elements.
Importance
nice to have