Ideally I can do $(document.body).on("tap", "#myElement", this.eventHandler);
But jQuery hasn’t done that yet.
I see so many libraries — https://github.com/bebraw/jswiki/wiki/Touch. There’s a long list on that page.
They all seem to use old fashioned event listening. Such as, $("#element").touchLibraryThingy(); $("#element").bind("tap"). Equivalent to addEventListener.
That’s great for an ID (Sorta), but when I have 50 list items that all have events on them, I don’t want someone on an old Android to have 50 event listeners. For performance reasons!
Does anyone know of a library that uses event delegation that is finished?
This stackoverflow question is similar but doesn’t come to truth — Extend jQuery's .on() to work with mobile touch events
Better yet, now with jQuery Mobile custom builder, you can only select their mobile events and get the latest touch code, which has improvements over the example above.
http://jquerymobile.com/download-builder/