react-p5 icon indicating copy to clipboard operation
react-p5 copied to clipboard

iphone 12 canvas size is incorrect. Safari is keep getting crashed due to incorrect resolution

Open arpitpolynine opened this issue 3 years ago • 1 comments

Hello,

I am facing trouble to load the p5 js but it's showing error in iphone 12.

const setup = (p5: any, parent: any) => {
    p5.createCanvas(2000, 2000).parent(parent);
    // this works
  };

<canvas id="defaultCanvas0" class="p5Canvas" width="6000" height="6000" style="width: 2000px; height: 2000px;"></canvas>

If you have noticed, canvas width and height attribute is 6000 x 6000. The canvas resolution is going out of limit.

Please help!

arpitpolynine avatar Feb 21 '22 09:02 arpitpolynine

Follow with the same issue on generic web browser..

Rickyc81 avatar May 15 '22 13:05 Rickyc81