java console error about touch navigation

In your code, whatever is right in front of .querySelectorAll is not found.

So for example, thisObject.querySelectorAll, thisObject is not defined so the function fails finding all the elements that that function is looking for when there is no object to query within. There would need to be more code to be able to figure out why that might be as there is not enough here to give a more concrete answer.