I am currently using the following for every element I want to change the class of on touch:
ontouchstart=\"$(this).addClass(\'select\');\" ontouchend=\"$(this).
I think you need to use jQuery Mobile. It has some normalized events, which are quite possibly what you need. Here's a list of special events from jQuery Mobile's API reference: little link.
You care about those:
vmousedown
Normalized event for handling touchstart or mousedown events
vmousemove
Normalized event for handling touchmove or mousemove events
vmouseup
Normalized event for handling touchend or mouseup events