Allow containers other than window to scroll
It would be useful to allow other containers to scroll, for where the main view is static, but it is an internal div that scrolls.
I have a draft change here, but lacking example and documentation update, on my side, I am not ready to make a PR: https://github.com/ajmas/react-scrollable-anchor/tree/issue-2/src
This improvement is definitely on my radar. Feel free to finish + test your change and throw up a PR. I might have time this week to give it a shot as well. If you have a particular use-case in mind, feel free to share it, and I can test against it.
I'll see what I can do, though if you get to make a change before I make mine, then that's cool.
@ajmas curious how you got on with this?
@jjenzz I haven’t made much new progress, due to other priorities on my plate.
@ajmas Any update on this?
Haven’t had time to explore the issue much since. I would encourage anyone else to see if they can improve on this.
Well seems your fix above have addressed it. Any chance you can throw it in? Thanks
PR made: https://github.com/gabergg/react-scrollable-anchor/pull/37/