You're trying to add touch event listeners to a list of elements (querySelectorAll), not individual elements.
Use a forEach
loop to add the listeners to each element found by querySelectorAll
.
For testing on IOS, if you have a computer running MacOS, you can enable the develop
menu in safari's preferences.