We are about to switch to a new forum software. Until then we have removed the registration on this forum.
I added a p5.js sketch on the page.
Everything works as expected on the Desktop: I click any of the fields in "Leave Comment" and I can type.
But I can't click the field on my mobile phone. The fields can't get focus when I touch them.
Ideas?
As a side note:
Is the variable touchIsDown
deprecated?
Answers
Re: is
touchIsDown
deprecated?It is no longer listed in the public p5.js reference under "Touch". Instead, use
touchStarted
--Edit: ...oh, the variable. I believe you can just check
touches.length!=0
-- the variable isn't in the reference, but it does appear once in the source:Thanks for the help!
The
touches.length != 0
trick works but the focus for the touch events is still blocked. Can't click any link on the page when using mobile version.Might be a bug. Issue on Github.