How to disable page scrolling on mobile?
There are 2 methods for this:
In the Javascript code (inside the exported index.html
file) add the following at the end:
function preventBehavior(e) {
e.preventDefault();
};
const canvas = document.getElementById('glcanvas');
canvas.addEventListener('touchmove', preventBehavior, false);
You can also add the touchscreen op for mobile/tablets/touchscreens and disable the following settings.
Disable scaling
or
Disable scroll
Found a problem? Edit this file on github and contribute to cables!