Hello,
does the canvas html element created by the PlayCanvas engine swallow all touch events by default when run on mobile?
I’ve searched the export of a project for “preventDefault” - the only place it is used is the engine js file.
The problem that arises from this is that it’s impossible to scroll the page on mobile devices where the canvas is. In my case, the playcanvas scene is the first block of a long page and is in full screen size on mobile which blocks touch scrolling of the page.
My temporary solution is to set the css property ‘pointerEvents’ to ‘none’ but ideally I’d like to handle horizontal touch movement in the PlayCanvas scene and pass the event to the browser when vertical touch movement is detected so that my scene can be interactive but not blocking page scrolling on mobile devices.
I guess this should be a PlayCanvas scene setting that regulates the default behaviour of touch input like a checkbox named ‘prevent default’ in the input section of the settings panel.
Please let me know if I got something wrong or am missing something and whether my assumptions are correct or not.
Thank you very much!