That is generally the problem of re-implementing functionality that browsers already have. Edge cases are missed.
That is generally the problem of re-implementing functionality that browsers already have. Edge cases are missed.
But I digress. Thanks for pointing this out, hopefully we'll eventually smooth over the quirks to a reasonable degree. Logged the bug for now: https://github.com/artsy/scroll-frame/issues/12
This kind of stuff, in addition to being a pain in the ass for you, the developer, is why users hate this kind of trickery. I see that I'm on an infinite-scrolling page and I say to myself "ugh, I wonder which standard browser behavior is broken due to the weird hacks they had to employ to make this crap work." Which, ironically, is one reason I habitually open things in a new tab on pages like this -- I don't want whatever hacks are being employed to cause me to lose my page state.
That being said, yes, this is why reimplementing browser builtins hard, you have to get all the details right. That being said, hard != don't do it.