Thanks for the tip - I’ve added it to the program. Unfortunately, the problem still occurs with the same reasons as before. I’m using macOS Sierra - Could that be the cause?
no idea about OS,
also possibly a browser problem,
but to separate the problem from the
p5.js site environment
try do a download and ftp upload to a server.
p.s. your latest code after add that “tip” also
for the keyboard, i see now under win7 / firefox /
that the keyboard is not working at all, ( [space] gives a jump because it seems to force firefox to reload the page )
mouse press OK
//___________
the resulting thing what is send to the browser is as i understand a .png,
and all browser open on mouse right click the image save menu,
possibly you should do like
mousePressed
if mouseButton == LEFT … move true;
I’ve figured out how to fix it, it seems when you right-click in Chrome it opens up a context menu (which takes away focus from the browser), so if you disable that it should work. You can disable it by putting: oncontextmenu=" event.preventDefault(); in sketch.js
or <body oncontextmenu="return false;"> in index.html