processing / p5.js

p5.js is a client-side JS platform that empowers artists, designers, students, and anyone to learn to code and express themselves creatively on the web. It is based on the core principles of Processing. http://twitter.com/p5xjs —
http://p5js.org/
GNU Lesser General Public License v2.1
21.65k stars 3.32k forks source link

print() function opens print dialog if you don't pass any parameters. #3362

Closed lminsky closed 5 years ago

lminsky commented 5 years ago

Nature of issue?

Most appropriate sub-area of p5.js?

Which platform were you using when you encountered this?

Details about the bug:

Here's an example: https://editor.p5js.org/lminsky/sketches/SkdYYI_1V

lmccart commented 5 years ago

I'm sorry, I think there was some confusion in our conversation. This is by design, so as not to block the browser native print method. If there's a problem with the auto-refresh in the web editor calling the function too soon, that issue can be posted over there.