Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How go back in the game with the browser button? #114

Open
BlackRam-oss opened this issue Apr 16, 2024 · 0 comments
Open

How go back in the game with the browser button? #114

BlackRam-oss opened this issue Apr 16, 2024 · 0 comments
Labels
documentation Improvements or additions to documentation

Comments

@BlackRam-oss
Copy link
Contributor

BlackRam-oss commented Apr 16, 2024

https://pixivn.readthedocs.io/en/latest/Intercept-Events.html#back-and-forward-buttons

Add into "onpopstate" a goBack allows you to press the back button only once. a solution must be found

    function onpopstate() {
        window.history.forward();
        goBack(navigate, () => { notifyLoadEvent((prev) => prev + 1) })
    }
@BlackRam-oss BlackRam-oss added the documentation Improvements or additions to documentation label Apr 16, 2024
@BlackRam-oss BlackRam-oss changed the title Come tornare in gioco con il pulsante del browser? How go back in the game with the browser button? Apr 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant