Touch display detection on webGL

Yup, seems to return true on desktop (tested Firefox/Chrome).

And looking at pure javascript solutions, they seem to work same way (waiting for single touch, to know if touch is actually enabled…)

Issue with that is that you cannot display touch specific content, until user clicks screen… (i guess can add initial start screen that requires 1 click to continue then…)

so heres my simple script to wait for touch, and then could something:

1 Like