So I'm making a small HTML canvas application in HTML and JS, and ran into a problem with touch gestures.
I am working on allowing users to draw on a canvas with a touch screen. After adding support for multi touch I realized that the default touch gestures, such as scrolling or zooming, are still active.
I need to disable the default touch gestures for the entire page.
My first idea was to use Event.preventDefault()
but it gives off an error and solves nothing.
Then I found this HTML attribute content="user-scalable=no"
but that didn't work either.
So now I'm a bit stumped and would love some advice.