disable scrolling and 'back' on touch devices

Hey everyone, I made a p5 sketch where the user can draw in colorful lines on the screen by swiping their finger, or moving the mouse. Everything works fine, bu when I go to the webpage on a touch device, it thinks that I'm trying to scroll or go back to the previous page, which makes the whole drawing look weird. Is there any possible way to fix this?

This is the sketch I'm talking about: http://www.aartodding.nl/linesticleP5/

Many thanks, Aart

Answers

Sign In or Register to comment.