I have this function in P5.js :
function mousePressed() {
if (mouseButton === LEFT) {
background(255);
canvas2.clear();
canvas3.clear();
}
if (mouseButton === RIGHT) {
canvas3.clear();
canvas3.fill(0, 0, 0);
canvas3.stroke(0, 0, 0);
canvas3.rect(80, 180, 40, 40);
}
}
And it works perfectly , but.... When I click mouse-rightclick , the browser context menu shows-up (Save image as..., Copy image..., Inspect Ctrl+Shift+I). How to disable this or change the behavior?