-
Notifications
You must be signed in to change notification settings - Fork 29
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
Ask for confirmation when user triggers going Back or Forward on Playground page #379
Comments
It's a great proposal! We can catch this event on the window if we change playground code (https://developer.mozilla.org/en-US/docs/Web/API/WindowEventHandlers/onbeforeunload) if you have any other options please post it. |
I was thinking of preventing swipe from going back to the previous webpage, but actually it would be great to detect going back or going forward for any reason and ask for confirmation. And if so, we should implement it for every OS. |
Karol, would you like to work on it? |
@czerwinskilukasz1 sure. Feel free to assign me. |
Hey @km4 , how are things going? :) |
@czerwinskilukasz1 I prefer to use |
@km4 , ah, I must have missed your comment, I'm sorry! |
Ok, no problem, then I work on it. 👍 |
After I wrote quite a long program in AskScript in Playground, I accidentally swiped on my touchpad when trying to scroll the code window and left Playground. After I came back, the code was gone.
How about we prevent swiping from doing this or ask for confirmation before leaving the page?
Alternatively we could remember the code in session or browser storage.
The text was updated successfully, but these errors were encountered: