S-scroll-box: plans to support scroll / scrolltoedge events in customer account UI extensions?

Hi, we are in the process of migrating to Polaris Web Components, and I was wondering if there are any plans to include onScroll and onScrollEdge along with the scroll position?

We are using <s-scroll-box /> in order to show products for upsells, and these two functions are crucial for us to determine what products have been viewed based on the scroll position, and whether customer reached the end of the scroll component.

With the React-based components this was possible via onScroll / onScrolledToEdge on <ScrollView />. The docs state that no scroll events are emitted and point back to the 2025-07 React API which is being deprecated and not feasable anymore.

Are there any plans to introduce these two functions?

Thanks a bunch!

Thanks ChatGPT, unfortunately these won’t work in the sandboxed environment of extensions

Hey @AndrejMazhe

Native scroll listeners and IntersectionObserver aren’t available in the extension sandbox.

That said, we do realize this does add some difficulty in the migration to Polaris web components and we’re aware of the gap. Right now, there currently isn’t a supported way for a Customer Account UI extension to read the scroll position or detect when <s-scroll-box> reaches an edge, and I don’t have a release timeline I can share yet, but it is something that’s on our radar.

Appreciate you flagging this.