Open dverdon1 opened 8 years ago
This is a good point. I'm not sure how this can be accomplished technically -- it's not possible to disable the back button.
The only reason to allow 'undo' to be disabled is because for large workspaces, it takes so long to save the entire workspace that it becomes tiresome for this to happen with every interaction. In the future, however, we plan for the 'undo' function to become more intelligent, only storing minimal information needed to go back, rather than the entire previous state. So we might just have to wait for that.
I'm no JS expert but I have seen pages that display 'information will be lost' warnings when the user tries to navigate away. Would something like this be helpful?
http://stackoverflow.com/questions/1299452/how-do-i-stop-a-page-from-unloading-navigating-away-in-js
Thanks, interesting, maybe something along these lines could be a good user interface idea.
On Wed, Jan 27, 2016 at 2:22 PM, Dominic Verdon notifications@github.com wrote:
I'm no JS expert but I have seen pages that display 'information will be lost' warnings when the user tries to navigate away. Would something like this be helpful?
http://stackoverflow.com/questions/1299452/how-do-i-stop-a-page-from-unloading-navigating-away-in-js
— Reply to this email directly or view it on GitHub https://github.com/jamievicary/globular/issues/32#issuecomment-175653875 .
It is very easy to forget that undo is disabled and click the 'back' button on the browser. When this happens a lot of work can be lost. Would it be possible to show a popup window with a warning when this occurs?