Open igrep opened 2 months ago
@igrep
Thank you for the report! You don't have to apologize anything:)
It seems to be difficult to fix it, because the initial state of the page is not necessarily the same as the state of when the game is being played. Lazy loading, SPA and etc.
Hope any good idea occurred to us sometime😄
It seems to be difficult to fix it, because the initial state of the page is not necessarily the same as the state of when the game is being played. Lazy loading, SPA and etc.
I thought in reverse. There's an option that makes things simpler:
Restoring state including scrollX/Y is actually too difficult (perhaps impossible), so making it user's job could be an idea. Current behavior may be incomplete.
How to reproduce
Expected Result
The game starts at the same viewport, which we see before reloading.
Actual Result
The game starts at the original viewport, which we see at first when visiting the page. The scroll state gets back to the original because brick-break-anywhere always reloads to refresh when replaying.
Side Note
I found this problem while creating https://github.com/canalun/brick-break-anywhere/pull/13, then guessed it'd be hard to fix then gave up. Sorry.