inertia icon indicating copy to clipboard operation
inertia copied to clipboard

fix scroll-region on html element with overflow-scroll

Open axel-paillaud opened this issue 1 year ago • 0 comments

add restoreScrollPositions() in setPage() method if we have scroll-region. Use this.page instead of page.

This is related to #1211

In line 454 : console.log(page.scrollRegions) is always undefined, and I don't know why. If we do only console.log(page), we can see the scrollRegions field inside browser inspector, but I think it was populated asynchronously ?

With this version, scroll-region work well, and scrolling items are not reset when we submit the form (for example), but this.page is kind of a cheat ?

axel-paillaud avatar Jan 31 '24 06:01 axel-paillaud