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

Catch browser back button and warn that progress will be lost #45

Open
invicticide opened this issue Dec 14, 2017 · 1 comment
Open

Comments

@invicticide
Copy link
Owner

Currently when the browser back button is pressed it will navigate the player away from the Fractive story and lose the entire story state. This could suck if you're a ways into a story and press the browser back button with intent to back up one section.

It's not acceptable to override the browser back button's behavior (e.g. to prevent leaving the page) but we do see a common convention of catching it and popping a warning or confirmation dialog. That would be good to have here.

@NQNStudios
Copy link
Collaborator

Also catch the Refresh button, and the close window button.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants