mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.01k stars 394 forks source link

Add visual feedback when download a file #81

Open mracette opened 4 years ago

mracette commented 4 years ago

Google Chrome Version 78.0.3904.97 Its standard practice for files downloaded from a website to appear in a downloads "tray". In Chrome, it's the panel that appears at the bottom of the browser window.

canvas-sketch seems to bypass this by saving to Downloads with no visual feedback. I think it would be better to use the default browser behavior to provide visual feedback.

mattdesl commented 4 years ago

Some visual feedback (like a 'toast') element would be good.

The reason we aren't using native file downloading is that: (a) it is often blocked by browsers, (b) exporting sequences generally won't work reliably with native browser downloading, and (c) you can't programmatically change the output folder.

mracette commented 4 years ago

I originally thought to suggest a toast but assumed the native file downloading would be easier. In any case, I think a toast is probably preferred because you can have greater control of the UI/UX.