Is Touch Buggy?

Sometimes it works… other times it doesn’t. Touch that is.

Here is the error I get:

Here is where it says the error is (Note that I console logged the ‘’ and it comes back as null)

And yes I have touch input enabled:

Yesterday it was doing this but I just remade the script and it somehow found it. But I tried again today and not really the same result. Weird.

Any Thoughts?

Nvm realized that my laptop doesn’t count as a touch device, so it crashes. But once I switched it in chrome it works fine. I’ll need to make a !== null to send me the appropriate error for later use.

1 Like