P5.js-sketch jumps out of a div on resizing browser window

Hi guys! I'm busy with working on my new website. Unfortunately i have a problem with integrating p5.js .

http://tests.timrodenbroeker.de/projects/p5js1/

If i resize the browser window, the sketch jumps out of the canvas. Also when i scroll down on that site on my smartphone, i have the same ugly effect. Does anyone know how to fix that?

Answers

  • Answer ✓

    I fixed it by myself by deleting this from my sketch:

    function windowResized() { resizeCanvas(windowWidth, windowHeight); }

    Thanks anyway!!

  • It's disappointing to find this post that maybe could solve my issue and then there is no code and the externally hosted examples have been deleted.

  • Maybe just contact @injuvik and ask via his main homepage in the link above? There an email and even a phone number....

Sign In or Register to comment.